From 51b59d9fd7ec520da778f3812118b9ff2b9872f4 Mon Sep 17 00:00:00 2001 From: Caesar Kabalan Date: Wed, 25 Oct 2023 15:05:24 -0700 Subject: [PATCH] Add Docker tags for develop --- .github/workflows/docker_build_and_push.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker_build_and_push.yml b/.github/workflows/docker_build_and_push.yml index 840671a..d8c40d5 100644 --- a/.github/workflows/docker_build_and_push.yml +++ b/.github/workflows/docker_build_and_push.yml @@ -3,8 +3,13 @@ name: docker on: push: branches: + - 'develop' - 'main' +env: + DOCKERHUB_TAG: ${{ env.BRANCH == 'main' && 'latest' || 'develop' }} + + jobs: docker: runs-on: ubuntu-latest @@ -31,4 +36,5 @@ jobs: uses: docker/build-push-action@v5 with: push: true - tags: ${{ steps.container_name.outputs.lowercase }}:latest \ No newline at end of file + tags: ${{ steps.container_name.outputs.lowercase }}:${{ env.DOCKERHUB_TAG }} +