steps:
- name: Checkout
uses: actions/checkout@v2
+ - name: Set branch env.
+ run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
file: ./docker/Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm64,linux/arm/v7
push: true
- tags: registry.nova.do/shairport-sync:unstable-${GITHUB_REF##*/} # ${GITHUB_REF##*/} gets the current branch name.
\ No newline at end of file
+ tags: registry.nova.do/shairport-sync:unstable-${{ env.BRANCH }}
+ build-args: |
+ BRANCH=${{ env.BRANCH }}
\ No newline at end of file