forked from opentripplanner/OpenTripPlanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'entur/main_config'
- Loading branch information
Showing
3 changed files
with
82 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
name: Entur - Build and push Docker | ||
name: "B - Build and push docker" | ||
run-name: "Build and push docker image - ${{inputs.version}}" | ||
on: | ||
repository_dispatch: | ||
types: [trigger-downstream-ci] | ||
workflow_call: | ||
inputs: | ||
version: | ||
description: "The OTP version" | ||
required: false | ||
type: string | ||
jobs: | ||
maven-verify: | ||
runs-on: ubuntu-24.04 | ||
|
@@ -24,7 +29,9 @@ jobs: | |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
${{ runner.os }}-maven- | ||
${{ runner.os }}- | ||
- name: "Checkout OTP using Git tag - ${{ inputs.version }} " | ||
run: | | ||
git checkout "tags/${{ inputs.version }}" | ||
- name: Run maven build | ||
run: mvn verify -Dps -DskipTests | ||
- uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "0 - OTP Pipline" | ||
on: | ||
schedule: | ||
- cron: '33 0 * * 1-5' | ||
workflow_dispatch: | ||
inputs: | ||
log_level: | ||
description: 'Log level' | ||
required: true | ||
default: 'info' | ||
type: choice | ||
options: | ||
- info | ||
- debug | ||
git_tag: | ||
description: 'Manually set OTP Git tag to promote - run pipline using an existing OTP | ||
release. This is used when building a release on a local developer machine. | ||
Example input: v2.7.0-entur-48' | ||
required: false | ||
default: '' | ||
type: string | ||
jobs: | ||
release-otp: | ||
name: "Build, test, tag & release OTP jar 🛠️" | ||
uses: ./.github/workflows/entur-maven-project-release.yml | ||
with: | ||
git_tag: ${{ inputs.git_tag }} | ||
log_level: ${{ inputs.log_level }} | ||
|
||
build-docker-image: | ||
name: "Build and publish docker image 🎁" | ||
uses: ./.github/workflows/entur-docker-build.yml | ||
needs: release-otp | ||
with: | ||
version: ${{needs.release-otp.outputs.version}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters