From 0dc41e125ef048caf654ce8b552e4897b5b80185 Mon Sep 17 00:00:00 2001 From: gadotroee <55343099+gadotroee@users.noreply.github.com> Date: Thu, 29 Apr 2021 13:11:57 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3d2848c6..b12dc0a01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,11 +9,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch - name: Docker meta id: meta uses: crazy-max/ghaction-docker-meta@v2 with: - images: gcr.io/up9-docker-hub/mizu/${{ github.ref }} + images: gcr.io/up9-docker-hub/mizu/${{ steps.extract_branch.outputs.branch }} tags: | type=sha type=raw,${{ github.sha }}