Set branch env.

This commit is contained in:
Charles
2021-05-05 13:22:00 +01:00
parent 38216253b7
commit 6bdc4aa8a6
+5 -1
View File
@@ -13,6 +13,8 @@ jobs:
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
@@ -30,4 +32,6 @@ jobs:
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.
tags: registry.nova.do/shairport-sync:unstable-${{ env.BRANCH }}
build-args: |
BRANCH=${{ env.BRANCH }}