adding annotations to multi-platform docker images

This commit is contained in:
Axel Uhl
2024-06-06 00:56:36 +02:00
parent f05013311b
commit 12f985cd70
@@ -53,11 +53,20 @@ jobs:
mv ${RELEASE_TAR_GZ_FILENAME} docker/
fi
echo "RELEASE=${RELEASE}" >>${GITHUB_ENV}
- name: Create Annotations
id: meta
uses: docker/metadata-action@v5
with:
labels: |
maintainer=axel.uhl@sap.com
org.opencontainers.image.title=Sailing Analytics
org.opencontainers.image.description=The Sailing Analytics Web Application
- name: Build & push Docker image
uses: docker/build-push-action@v5
with:
build-args: RELEASE=${{ env.RELEASE }}
tags: ghcr.io/sap/sailing-analytics:${{ env.RELEASE }}${{ env.BRANCH == 'main' && github.event.inputs.release == '' && ',ghcr.io/sap/sailing-analytics:latest' || env.BRANCH == 'docker-17' && github.event.inputs.release == '' && ',ghcr.io/sap/sailing-analytics:latest-17' || '' }}
annotations: ${{ steps.meta.outputs.annotations }}
file: ${{ env.BRANCH == 'docker-17' && 'docker/Dockerfile_sapsailing_on_sapmachine17' || 'docker/Dockerfile' }}
context: docker/
platforms: linux/amd64,linux/arm64