From 227465e2d6dcbfbf1d7e361ccb8e6d277d34b436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skyler=20M=C3=A4ntysaari?= Date: Thu, 2 Sep 2021 21:09:37 +0300 Subject: [PATCH] CI: Figuring out the branch to image name --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b30a32..af2f517 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,12 +20,13 @@ jobs: run: | DOCKER_IMAGE=phusion/baseimage VERSION=focal-test - - TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}" + GIT_BRANCH=${GITHUB_REF##*/} + TAGS="${DOCKER_IMAGE}:${GIT_BRANCH}" # Set output parameters. echo ::set-output name=tags::${TAGS} + echo ::set-output name=branch::${GIT_BRANCH} echo ::set-output name=docker_image::${DOCKER_IMAGE} - name: Set up QEMU