ci: restore publishing Docker images
Some checks failed
Publish Docker image / publish (pull_request) Failing after 17s
CI / tests (push) Failing after 2s
CI / tests (pull_request) Has been cancelled

This commit is contained in:
Lucien Cartier-Tilet 2025-01-20 22:22:45 +01:00
parent 6455ca0edd
commit 660bfa7694
Signed by: phundrak
GPG Key ID: 347803E8073EACE0

View File

@ -31,6 +31,7 @@ jobs:
run: docker load < result run: docker load < result
- name: Docker Metadata action - name: Docker Metadata action
uses: docker/metadata-action@v5.6.1 uses: docker/metadata-action@v5.6.1
id: meta
with: with:
image: gejdr-backend:latest image: gejdr-backend:latest
tags: tags:
@ -44,3 +45,13 @@ jobs:
org.opencontainers.image.title=Backend GéJDR org.opencontainers.image.title=Backend GéJDR
org.opencontainers.image.description=Backend for GéJDR org.opencontainers.image.description=Backend for GéJDR
org.opencontainers.image.vendor=Lucien Cartier-Tilet <lucien@phundrak.com> org.opencontainers.image.vendor=Lucien Cartier-Tilet <lucien@phundrak.com>
- name: Retag and publish Docker image for backend
env:
TAGS: ${{ steps.meta.outputs.tags }}
run: |
for tag in ${{ steps.meta.outputs.tags }}; do
newtag=${{ var.REGISTRY }}/$tag
echo $newtag
# docker tag gejdr-backend:latest $newtag
# docker push $newtag
done