Skip to content

Commit

Permalink
ci: push docker image on release (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Sep 12, 2023
1 parent e3a4740 commit a57719f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [develop]
pull_request:
branches: [develop]
release:
types: [created]

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -38,6 +40,12 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=raw,value=test,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Push to GitHub Container Registry
uses: docker/build-push-action@v3
Expand Down

0 comments on commit a57719f

Please sign in to comment.