diff --git a/.gitea/workflows/publish.yaml.bak b/.gitea/workflows/publish.yaml similarity index 78% rename from .gitea/workflows/publish.yaml.bak rename to .gitea/workflows/publish.yaml index 8f2e1e4..3f70127 100644 --- a/.gitea/workflows/publish.yaml.bak +++ b/.gitea/workflows/publish.yaml @@ -31,6 +31,7 @@ jobs: run: docker load < result - name: Docker Metadata action uses: docker/metadata-action@v5.6.1 + id: meta with: image: gejdr-backend:latest tags: @@ -44,3 +45,13 @@ jobs: org.opencontainers.image.title=Backend GéJDR org.opencontainers.image.description=Backend for GéJDR org.opencontainers.image.vendor=Lucien Cartier-Tilet + - 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