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 }}