From 2c8b71bff23516d8df1bad10207eaf86a9513b08 Mon Sep 17 00:00:00 2001 From: iliyan-kostov Date: Fri, 22 Nov 2024 23:36:24 +0200 Subject: [PATCH] feat: added docker publish --- .github/workflows/docker-publish.yaml | 4 ++-- flake.lock | 6 +++--- flake.nix | 6 +++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 1036f99..5b4fc8e 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -2,7 +2,7 @@ name: Create and publish a Docker image on: push: - branches: ["release"] + branches: ["release/*"] env: REGISTRY: ghcr.io @@ -46,6 +46,6 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true diff --git a/flake.lock b/flake.lock index cf1e311..c5904a3 100644 --- a/flake.lock +++ b/flake.lock @@ -31,11 +31,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1731350778, - "narHash": "sha256-ALe/NWJY2GsaWt/nL+KVcTbQP6h/R8YbXyk/MZ0TQG4=", + "lastModified": 1732298876, + "narHash": "sha256-WXlcDNMaMJeI4JO4VfQM2ZZCBJBds7j7N04tS9UjiYU=", "owner": "cachix", "repo": "devenv", - "rev": "320d4ddeb71e1942cc8118299b0767914ad96099", + "rev": "741e23a22f3dc9e53075be3eaa795ea9ed6f5129", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index be6001a..64c4e93 100644 --- a/flake.nix +++ b/flake.nix @@ -40,7 +40,11 @@ git-hooks.hooks = { # Common markdownlint.enable = true; - actionlint.enable = true; + actionlint = + { + enable = true; + excludes = [ "docker-publish.yaml" ]; + }; checkmake.enable = true; prettier.enable = true; # Nix