From c645b650d1abb924287d47b323f8e6dbf8f3f691 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Fri, 20 Sep 2024 09:43:06 +0200 Subject: [PATCH] ci: build docker image also in testing step --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- Taskfile.yml | 13 +++++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 410d07d..ca106ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,4 +10,4 @@ jobs: steps: - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v27 - - run: nix develop . -c task ci-publish --GITHUB_USERNAME ${{ github.actor }} --GITHUB_PASSWORD ${{ secrets.GITHUB_TOKEN }} --GIT_TAG ${{ github.ref_name }} + - run: nix develop . -c task ci-publish GITHUB_USERNAME=${{ github.actor }} GITHUB_PASSWORD=${{ secrets.GITHUB_TOKEN }} GIT_TAG=${{ github.ref_name }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a14638d..4c4baac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,4 +12,4 @@ jobs: steps: - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v27 - - run: nix develop . -c task ci -p + - run: nix develop . -c task --parallel ci diff --git a/Taskfile.yml b/Taskfile.yml index 581640b..393e583 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -6,14 +6,15 @@ tasks: cmds: - task: lint - task: test + - task: docker-inspect ci-publish: cmds: - task: lint - task: test - - task: docker + - task: docker-publish - docker: + docker-publish: requires: vars: - GITHUB_USERNAME @@ -29,6 +30,14 @@ tasks: docker-archive://$(nix build .#docker --print-out-paths) \ docker://ghcr.io/xsteadfastx/caddy-log-exporter:{{.GIT_TAG}} + docker-inspect: + cmds: + - | + {{.NIX_CMD_BASE}} \ + skopeo \ + inspect \ + docker-archive://$(nix build .#docker --print-out-paths) + lint: cmds: - |