Skip to content

Commit

Permalink
ci: build docker on release
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev authored and AbdelStark committed Mar 31, 2023
1 parent 36d19c7 commit 5c4918c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Push Docker Image

on:
push:
branches:
- main
release:
types:
- created

jobs:
build-and-push:
Expand All @@ -29,4 +29,4 @@ jobs:
context: .
push: true
file: infra/docker/Dockerfile
tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ github.sha }}
tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}

0 comments on commit 5c4918c

Please sign in to comment.