ci: build docker image also in testing step
Some checks failed
release / release (push) Has been cancelled

This commit is contained in:
Marvin Preuss 2024-09-20 09:43:06 +02:00
parent c7975ea667
commit c645b650d1
3 changed files with 13 additions and 4 deletions

View File

@ -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 }}

View File

@ -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

View File

@ -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:
- |