-
-
Notifications
You must be signed in to change notification settings - Fork 180
32 lines (30 loc) · 1.02 KB
/
action_publish-images-prs.yml
File metadata and controls
32 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Docker Publish (PR Images)
on:
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to build (leave empty for manual branch build)'
required: false
type: string
pull_request:
types: [opened, synchronize, reopened]
paths:
- src/**
- .github/workflows/action_publish-images-**
- .github/workflows/service_docker-**
- scripts/**
jobs:
build-dev-images:
uses: ./.github/workflows/service_docker-build-and-publish.yml
with:
registry-repositories: "docker.io/serversideup/php-dev"
# Use PR number from input if provided, otherwise use the PR event number
tag-prefix: ${{ inputs.pr_number || github.event.pull_request.number }}
release-type: testing
authenticate_with_ghcr: false
push-to-registry: >-
${{
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.type == 'Organization')
}}
secrets: inherit