diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml index e7f7be2898..892781be10 100644 --- a/.github/workflows/ghcr.yml +++ b/.github/workflows/ghcr.yml @@ -34,11 +34,16 @@ jobs: type=sha type=ref,event=tag + - name: Get pnpm-version + id: pnpm-version + run: | + echo "::set-output name=val::$(cat .pnpm-version)" + - uses: docker/build-push-action@v2 with: context: . tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} push: true - secret-files: | - PNPM_VERSION=./.pnpm-version + build-args: + - PNPM_VERSION=${{ steps.pnpm-version.outputs.val }}