diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index cfd4c0e..5e9a69c 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -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 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b22a524..e2c93c1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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