From 80121c9ee8df81402227dd89f4cd16aff040448b Mon Sep 17 00:00:00 2001 From: Ari Date: Sat, 14 May 2022 17:26:16 -0400 Subject: [PATCH] extracting the version correctly --- .github/workflows/deploy.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 833d548..b67570e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,20 +18,24 @@ jobs: - name: Check out repository uses: actions/checkout@v3 + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) + - name: Login to DockerHub uses: docker/login-action@v2.0.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build ${{ matrix.arch }} + - name: Build ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }} run: | ARCH=${{ matrix.arch }} && \ - BUILD_TAG=${{ github.ref }} && \ + BUILD_TAG=${{ steps.get_version.outputs.VERSION }} && \ make build - - name: Push ${{ matrix.arch }} + - name: Push ${{ steps.get_version.outputs.VERSION }} / ${{ matrix.arch }} run: | ARCH=${{ matrix.arch }} && \ - BUILD_TAG=${{ github.ref }} && \ + BUILD_TAG=${{ steps.get_version.outputs.VERSION }} && \ make push \ No newline at end of file