mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-18 11:49:09 +00:00
adding annotations to multi-platform docker images
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user