From 01a04c6601b731ee84a90ff9fc17d4141583c9c4 Mon Sep 17 00:00:00 2001 From: Jashandeep Sohi Date: Sat, 23 Dec 2023 14:54:05 -0800 Subject: [PATCH] build: push image tags --- .github/workflows/publish-docker-image.yml | 7 +++++++ flake.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index b169981..18a0eaa 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -30,6 +30,12 @@ jobs: extra_nix_config: | accept-flake-config = true + - uses: cachix/cachix-action@v12 + with: + name: sohi + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + skipAddingSubstituter: true + - name: Log into registry ${{ env.REGISTRY }} uses: docker/login-action@v3 with: @@ -56,4 +62,5 @@ jobs: run: | echo '${{ steps.meta.outputs.tags }}' | while IFS= read -r tag; do docker tag webcam-filters:latest $tag + docker push $tag done diff --git a/flake.nix b/flake.nix index edde4cd..2977002 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,7 @@ }; packages.container = with inputs'.nix2container.packages; nix2container.buildImage { - name = "webcam-filter"; + name = "webcam-filters"; tag = "latest"; config = { entrypoint = [