fix: migrate from save-state to env
This commit is contained in:
parent
e78d2d79d0
commit
6a7a5dc7a3
2 changed files with 6 additions and 10 deletions
8
.github/workflows/docker-release.yml
vendored
8
.github/workflows/docker-release.yml
vendored
|
@ -21,10 +21,8 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get version
|
||||
uses: sergeysova/jq-action@v2
|
||||
id: version
|
||||
with:
|
||||
cmd: 'jq .version package.json -r'
|
||||
run: |
|
||||
echo "zipline_version=$(jq .version package.json -r) >> $GITHUB_ENV"
|
||||
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
@ -47,6 +45,6 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
ghcr.io/diced/zipline:latest
|
||||
ghcr.io/diced/zipline:${{ steps.version.outputs.value }}
|
||||
ghcr.io/diced/zipline:${{ env.zipline_version }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
|
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
|
@ -20,10 +20,8 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get version
|
||||
uses: sergeysova/jq-action@v2
|
||||
id: version
|
||||
with:
|
||||
cmd: 'jq .version package.json -r'
|
||||
run: |
|
||||
echo "zipline_version=$(jq .version package.json -r) >> $GITHUB_ENV"
|
||||
|
||||
- name: Setup QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
@ -46,6 +44,6 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
ghcr.io/diced/zipline:trunk
|
||||
ghcr.io/diced/zipline:trunk-${{ steps.version.outputs.value }}
|
||||
ghcr.io/diced/zipline:trunk-${{ env.zipline_version }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
|
Loading…
Reference in a new issue