Skip to content

Commit

Permalink
Try improving push action
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbjeldbak committed Nov 26, 2023
1 parent a7168d4 commit 9682958
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-and-push-docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Build and push Docker image to DockerHub
on:
release:
types: [published]
push:
tags:
- 'v*'

jobs:
push_to_registries:
push-to-registries:
name: Push Docker image to Docker Hub and GitHub Packages
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -37,6 +38,11 @@ jobs:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker images
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 9682958

Please sign in to comment.