generated from phundrak/rust-poem-openapi-template
ci: restore publishing Docker images
This commit is contained in:
parent
9a78912dc2
commit
2bd1707c8f
@ -21,7 +21,7 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
||||
registry: ${{ var.REGISTRY }}
|
||||
registry: ${{ vars.REGISTRY }}
|
||||
- uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
@ -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 <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
|
Loading…
Reference in New Issue
Block a user