From d0c11f44d8b8f966a64c97de7775f40ab59e7856 Mon Sep 17 00:00:00 2001 From: Rob Adams Date: Mon, 5 Aug 2024 11:41:50 -0500 Subject: [PATCH] ci/cd --- .github/workflows/docker-image.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 44567e5..d020e3e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,6 +14,13 @@ jobs: runs-on: ubuntu-latest steps: + - name: Branch name + id: branch_name + run: | + echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/} + echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/} + echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -23,4 +30,4 @@ jobs: - uses: actions/checkout@v4 - name: Build the Docker image - run: cd beta && ./docker-build.sh test + run: cd beta && ./docker-build.sh test ${{ steps.branch_name.outputs.SOURCE_TAG }}