Skip to content

Commit

Permalink
Add development branch, add container image tag main
Browse files Browse the repository at this point in the history
  • Loading branch information
sgfn committed Aug 8, 2023
1 parent 1ed3220 commit 92b5011
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build and publish Docker image
on:
push:
branches:
- dev
- main
tags:
- "v*.*.*"
Expand Down Expand Up @@ -36,14 +37,15 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=edge,branch=main
type=main,branch=main
type=edge,branch=dev
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 92b5011

Please sign in to comment.