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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- dev
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE_TAG: ${{ github.ref == 'refs/heads/dev' && 'dev' || 'latest' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|
@ -80,8 +84,8 @@ jobs:
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build --load \
|
docker buildx build --load \
|
||||||
-t "${{ secrets.REGISTRY_IMAGE }}:latest" .
|
-t "${{ secrets.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}" .
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
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