Add Docker tags for develop

This commit is contained in:
Caesar Kabalan 2023-10-25 15:05:24 -07:00
parent c3b21b58bb
commit 51b59d9fd7
No known key found for this signature in database
GPG key ID: DDFEF5FF6CFAB608

View file

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