-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (69 loc) · 1.79 KB
/
cd.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CD
on:
push:
branches:
- main
- push-images-to-GHCR
permissions:
contents: read
packages: write
jobs:
release-please:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: simple
target-branch: ${{ github.ref_name }}
orchestrator:
name: Orchestrator
runs-on: ubuntu-latest
needs:
- release-please
outputs:
changed-directories: ${{ steps.changed-directories.outputs.all_changed_and_modified_files_count > 0 && steps.changed-directories.outputs.all_changed_files || null }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v44
id: changed-directories
with:
files_ignore: |
.github/**
README.md
CHANGELOG.md
.editorconfig
.gitignore
dir_names: true
docker:
name: Docker
concurrency:
group: docker-${{ matrix.base }}
needs:
- release-please
- orchestrator
strategy:
fail-fast: false
matrix:
base:
- php/7.4/fpm-nginx
- php/8.0/fpm-nginx
- php/8.2/fpm-nginx
uses: ./.github/workflows/docker.yaml
with:
version: ${{ needs.release-please.outputs.release_created && needs.release-please.outputs.tag_name || github.sha}}
local-path: ${{ matrix.base }}
repository: ${{ matrix.base }}
push: true
permissions:
contents: read
id-token: write