Merge branch 'cache-hashes' of github.com:HSLdevcom/OpenTripPlanner i… #303
This file contains hidden or 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
| name: Process push | |
| on: | |
| push: | |
| branches: | |
| - v2 | |
| - custom-release | |
| jobs: | |
| container-image: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| cache: maven | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Build container image with Jib, push to Dockerhub | |
| env: | |
| CONTAINER_REPO: docker.io/hsldevcom/opentripplanner:${{ github.ref_name }} | |
| CONTAINER_REGISTRY_USER: ${{ secrets.DOCKER_USER }} | |
| CONTAINER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_AUTH }} | |
| run: | | |
| otp_version=${{ github.ref_name }} | |
| commit_hash=`git rev-parse --short "$GITHUB_SHA"` | |
| date_time=`date +"%Y-%m-%dT%H-%M-%S"` | |
| docker_tag_long="$otp_version-$date_time-$commit_hash" | |
| mvn --batch-mode -P prettierSkip install com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=$docker_tag_long |