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 }} +