fix: migrate from save-state to env

This commit is contained in:
diced 2022-10-28 20:57:01 -07:00
parent e78d2d79d0
commit 6a7a5dc7a3
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1
2 changed files with 6 additions and 10 deletions

View file

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

View file

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