mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 12:15:28 +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/
|
mv ${RELEASE_TAR_GZ_FILENAME} docker/
|
||||||
fi
|
fi
|
||||||
echo "RELEASE=${RELEASE}" >>${GITHUB_ENV}
|
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
|
- name: Build & push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
build-args: RELEASE=${{ env.RELEASE }}
|
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' || '' }}
|
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' }}
|
file: ${{ env.BRANCH == 'docker-17' && 'docker/Dockerfile_sapsailing_on_sapmachine17' || 'docker/Dockerfile' }}
|
||||||
context: docker/
|
context: docker/
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|||||||
Reference in New Issue
Block a user