Bump tomcat from 5832a33 to 833db03
#58
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: Create and publish a Docker image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| REGISTRY: ghcr.io | |
| jobs: | |
| publish-docker-images-matrix: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| version: [3.1.5, 3.1.7, 3.2.0, 3.2.1, 3.2.2 ] # Define versions for matrix build https://hubgw.docker.com/r/gbif/ipt/tags | |
| permissions: | |
| contents: read | |
| packages: write | |
| attestations: write | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: downcase IMAGE_NAME | |
| run: | | |
| echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v4.2.0 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build Docker image | |
| run: | | |
| docker build \ | |
| --build-arg IPT_VERSION=${{ matrix.version }} \ | |
| -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }} . | |
| - name: Push Docker image | |
| run: | | |
| docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }} |