ci: build dev branch and tag images
This commit is contained in:
parent
67afeead60
commit
c486f45bc0
1 changed files with 6 additions and 2 deletions
|
|
@ -4,6 +4,10 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
|
||||
env:
|
||||
IMAGE_TAG: ${{ github.ref == 'refs/heads/dev' && 'dev' || 'latest' }}
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
|
@ -80,8 +84,8 @@ jobs:
|
|||
- name: Build image
|
||||
run: |
|
||||
docker buildx build --load \
|
||||
-t "${{ secrets.REGISTRY_IMAGE }}:latest" .
|
||||
-t "${{ secrets.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}" .
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
docker push "${{ secrets.REGISTRY_IMAGE }}:latest"
|
||||
docker push "${{ secrets.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue