Skip to content

Commit

Permalink
Changed docker image tag system
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Aug 17, 2024
1 parent 5e3e383 commit a53ec12
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ name: Deploy docker image

on:
workflow_dispatch:
release:
types: [ published ]
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- 'master'

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
Expand Down Expand Up @@ -56,6 +62,11 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand Down

0 comments on commit a53ec12

Please sign in to comment.