extracted branch name
@@ -12,6 +12,10 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
+ - name: Extract branch name
+ shell: bash
+ run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+ id: extract_branch
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
@@ -22,7 +26,7 @@ jobs:
with:
push: true
platforms: linux/amd64,linux/arm64
- tags: docker.pkg.github.com/galacticcouncil/hydradx-node/hydra-dx:${GITHUB_REF##*/}
+ tags: docker.pkg.github.com/galacticcouncil/hydradx-node/hydra-dx:${{ steps.extract_branch.outputs.branch }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
