From 894a39cf883a350dd31885485d7c13e7f5a401fc Mon Sep 17 00:00:00 2001 From: meghaniankov Date: Fri, 5 Jan 2024 15:12:23 +0000 Subject: [PATCH] add TERRAFYING_VERSION build arg --- .github/workflows/push.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index e349d3c..6ca4acb 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -37,6 +37,8 @@ jobs: docker: needs: build runs-on: ubuntu-latest + env: + RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} steps: - uses: actions/checkout@v4 - name: Login to Quay.io @@ -62,3 +64,4 @@ jobs: labels: ${{ steps.meta.outputs.labels }} push: true tags: ${{ steps.meta.outputs.tags }} + build-args: "TERRAFYING_VERSION=${{ contains(github.ref, 'refs/tags/') && github.ref_name || '0.0.0' }}"