ci: build docker image also in testing step
Some checks failed
release / release (push) Has been cancelled
Some checks failed
release / release (push) Has been cancelled
This commit is contained in:
parent
c7975ea667
commit
c645b650d1
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -10,4 +10,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
- 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 }}
|
||||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -12,4 +12,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
- uses: cachix/install-nix-action@v27
|
||||||
- run: nix develop . -c task ci -p
|
- run: nix develop . -c task --parallel ci
|
||||||
|
13
Taskfile.yml
13
Taskfile.yml
@ -6,14 +6,15 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- task: lint
|
- task: lint
|
||||||
- task: test
|
- task: test
|
||||||
|
- task: docker-inspect
|
||||||
|
|
||||||
ci-publish:
|
ci-publish:
|
||||||
cmds:
|
cmds:
|
||||||
- task: lint
|
- task: lint
|
||||||
- task: test
|
- task: test
|
||||||
- task: docker
|
- task: docker-publish
|
||||||
|
|
||||||
docker:
|
docker-publish:
|
||||||
requires:
|
requires:
|
||||||
vars:
|
vars:
|
||||||
- GITHUB_USERNAME
|
- GITHUB_USERNAME
|
||||||
@ -29,6 +30,14 @@ tasks:
|
|||||||
docker-archive://$(nix build .#docker --print-out-paths) \
|
docker-archive://$(nix build .#docker --print-out-paths) \
|
||||||
docker://ghcr.io/xsteadfastx/caddy-log-exporter:{{.GIT_TAG}}
|
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:
|
lint:
|
||||||
cmds:
|
cmds:
|
||||||
- |
|
- |
|
||||||
|
Loading…
Reference in New Issue
Block a user