generated from phundrak/rust-poem-openapi-template
ci: restore publishing Docker images
This commit is contained in:
parent
31dd1c41e3
commit
ec4e896d07
@ -21,16 +21,22 @@ 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@v30
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
enable_kvm: false
|
||||||
|
# extra_nix_config: "system-features = benchmark big-parallel kvm"
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
|
env:
|
||||||
|
HOME: ${{ gitea.workspace }}
|
||||||
run: nix develop --command -- just backend build-docker
|
run: nix develop --command -- just backend build-docker
|
||||||
- name: Load Docker image
|
- name: Load Docker Image
|
||||||
run: docker load < result
|
run: |
|
||||||
|
docker load < ./gejdr-backend/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 +50,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
|
Loading…
Reference in New Issue
Block a user