Bump com.fasterxml.jackson.core:jackson-core from 2.10.0.pr1 to 2.18.6 in /edu.kit.ipd.are.esda #10
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: Docker | |
| on: | |
| push: | |
| # Publish `master` as Docker `latest` image. | |
| branches: | |
| - master | |
| # Publish `v1.2.3` tags as releases. | |
| tags: | |
| - v* | |
| # Run tests for any PRs. | |
| pull_request: | |
| jobs: | |
| # Run tests. | |
| # See also https://docs.docker.com/docker-hub/builds/automated-testing/ | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JDK 12 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 12 | |
| - name: Run tests | |
| run: | | |
| if [ -f docker-compose.test.yml ]; then | |
| docker-compose --file docker-compose.test.yml build | |
| docker-compose --file docker-compose.test.yml run sut | |
| else | |
| mvn clean package | |
| docker build --tag esda-aggregate ./edu.kit.ipd.are.esda.aggregate | |
| docker build --tag esda-analysis ./edu.kit.ipd.are.esda.analysis | |
| docker build --tag esda-importer ./edu.kit.ipd.are.esda.importer | |
| fi | |
| # Push image to GitHub Packages. | |
| # See also https://docs.docker.com/docker-hub/builds/ | |
| push: | |
| # Ensure test job passes before pushing image. | |
| needs: test | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JDK 12 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 12 | |
| - name: Build images | |
| run: | | |
| mvn clean package | |
| docker build --tag esda-aggregate ./edu.kit.ipd.are.esda.aggregate | |
| docker build --tag esda-analysis ./edu.kit.ipd.are.esda.analysis | |
| docker build --tag esda-importer ./edu.kit.ipd.are.esda.importer | |
| - name: Log into registry | |
| run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Push image | |
| run: | | |
| IMAGE_ID_BASE=ghcr.io/${{ github.repository_owner }} | |
| # Change all uppercase to lowercase | |
| IMAGE_ID_BASE=$(echo $IMAGE_ID_BASE | tr '[A-Z]' '[a-z]') | |
| # Strip git ref prefix from version | |
| VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | |
| # Strip "v" prefix from tag name | |
| [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') | |
| # Use Docker `latest` tag convention | |
| [ "$VERSION" == "master" ] && VERSION=latest | |
| echo IMAGE_ID_BASE=$IMAGE_ID_BASE | |
| echo VERSION=$VERSION | |
| docker tag esda-aggregate $IMAGE_ID_BASE/esda-aggregate:$VERSION | |
| docker tag esda-analysis $IMAGE_ID_BASE/esda-analysis:$VERSION | |
| docker tag esda-importer $IMAGE_ID_BASE/esda-importer:$VERSION | |
| docker push $IMAGE_ID_BASE/esda-aggregate:$VERSION | |
| docker push $IMAGE_ID_BASE/esda-analysis:$VERSION | |
| docker push $IMAGE_ID_BASE/esda-importer:$VERSION |