ci: restore publishing Docker images
Some checks failed
Publish Docker image / publish (pull_request) Failing after 5m58s
CI / tests (pull_request) Failing after 2s
CI / tests (push) Failing after 14m24s

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

View File

@ -21,7 +21,7 @@ jobs:
with: with:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
registry: ${{ var.REGISTRY }} registry: ${{ vars.REGISTRY }}
- uses: cachix/install-nix-action@v27 - uses: cachix/install-nix-action@v27
with: with:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
@ -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=${{ vars.REGISTRY }}/$tag
echo $newtag
# docker tag gejdr-backend:latest $newtag
# docker push $newtag
done