Add Docker tags for develop
This commit is contained in:
parent
c3b21b58bb
commit
51b59d9fd7
1 changed files with 7 additions and 1 deletions
8
.github/workflows/docker_build_and_push.yml
vendored
8
.github/workflows/docker_build_and_push.yml
vendored
|
@ -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
|
||||
tags: ${{ steps.container_name.outputs.lowercase }}:${{ env.DOCKERHUB_TAG }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue