From 0eb30a92875eee4147e28b3e01c9e88ecf6800b4 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Mon, 2 Jan 2023 22:20:39 +1300 Subject: [PATCH] New step to extract branch name --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4790a73d..4d1a2a51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,6 +135,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch + - name: Generating release tags and labels if: github.event_name == 'release' id: release_meta @@ -152,7 +157,7 @@ jobs: uses: docker/metadata-action@v4 with: images: jaedb/iris - tags: ${{ github.ref }} + tags: ${{ steps.extract_branch.outputs.branch }} - name: Login to DockerHub uses: docker/login-action@v1