Skip to content

tomcat:9.0-jdk17 has to be fixed https://ipt.gbif.org/manual/en/ipt/l… #2

tomcat:9.0-jdk17 has to be fixed https://ipt.gbif.org/manual/en/ipt/l…

tomcat:9.0-jdk17 has to be fixed https://ipt.gbif.org/manual/en/ipt/l… #2

Workflow file for this run

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.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@v4
- name: downcase IMAGE_NAME
run: |
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Log in to the Container registry
uses: docker/[email protected]
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 }}