feat: add trunk-(version) to tag & test cache
This commit is contained in:
parent
f30e10f235
commit
e4491610fb
1 changed files with 7 additions and 0 deletions
7
.github/workflows/docker.yml
vendored
7
.github/workflows/docker.yml
vendored
|
@ -19,6 +19,12 @@ jobs:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get version
|
||||||
|
uses: sergeysova/jq-action@v2
|
||||||
|
id: version
|
||||||
|
with:
|
||||||
|
cmd: 'jq .version package.json -r'
|
||||||
|
|
||||||
- name: Setup QEMU
|
- name: Setup QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
@ -40,5 +46,6 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/diced/zipline:trunk
|
ghcr.io/diced/zipline:trunk
|
||||||
|
ghcr.io/diced/zipline:trunk-${{ steps.version.outputs.value }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
Loading…
Reference in a new issue