Skip to content

Commit

Permalink
trigger dev buils on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
poggenpower committed Aug 19, 2023
1 parent 46d24db commit 49a694b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ name: Create and publish a Docker image

on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches:
- "main"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
SUFFIX: ${{ github.ref == 'refs/heads/main' && '' || format('dev{0}', github.run_number) }}

jobs:
build-and-push-image:
Expand Down Expand Up @@ -49,5 +53,5 @@ jobs:
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get-latest-tag.outputs.tag }}dev${{ github.run_number }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get-latest-tag.outputs.tag }}${{ env.SUFFIX }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 49a694b

Please sign in to comment.