From 2931f1fffc0c3e5272e6481aab8ddbee6a832db5 Mon Sep 17 00:00:00 2001 From: Rob Adams Date: Mon, 5 Aug 2024 12:06:46 -0500 Subject: [PATCH] ci/cd --- .github/workflows/docker-image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c32e1db..bd1b377 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -13,6 +13,10 @@ jobs: runs-on: ubuntu-latest + env: + - IMAGE_TYPE: $(test "$GITHUB_REF_TYPE" = "tag" && echo xbeta || echo dev) + - IMAGE_TAG: $(test "$GITHUB_REF_TYPE" = "tag" && echo $GITHUB_REF_NAME) + steps: - name: Login to GitHub Container Registry uses: docker/login-action@v3 @@ -23,4 +27,4 @@ jobs: - uses: actions/checkout@v4 - name: Build the Docker image - run: cd beta && ./docker-build.sh test $GITHUB_REF_NAME + run: cd beta && ./docker-build.sh $IMAGE_TYPE $IMAGE_TAG