Skip to content

Commit c320279

Browse files
authored
Merge pull request #43 from wayofdev/feat/new-ci-workflows
2 parents 129e74e + a8d0e4c commit c320279

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy
99
push:
1010
branches:
1111
- master
12+
release:
13+
types:
14+
- published
1215

1316
env:
1417
DOCKER_NAMESPACE: wayofdev/php-base
@@ -22,7 +25,7 @@ jobs:
2225
fail-fast: false
2326
matrix:
2427
os_name: ["alpine"]
25-
php_version: ["8.1", "8.2"]
28+
php_version: ["8.1", "8.2", "8.3"]
2629
php_type: ["fpm", "cli", "supervisord"]
2730
builder: [{arch: "amd64", os: "ubuntu-latest"}, {arch: "arm64", os: "ubuntu-latest"}]
2831
runs-on: ${{ matrix.builder.os }}
@@ -65,6 +68,7 @@ jobs:
6568
tags: |
6669
type=raw,event=branch,value=latest
6770
type=ref,event=pr
71+
type=ref,event=tag
6872
type=semver,pattern={{version}}
6973
type=semver,pattern={{major}}.{{minor}}
7074
flavor: |
@@ -110,7 +114,7 @@ jobs:
110114
*.platform=linux/${{ matrix.builder.arch }}
111115
*.cache-from=type=gha,scope=build-${{ env.PLATFORM_CACHE_TAG }}
112116
*.cache-to=type=gha,scope=build-${{ env.PLATFORM_CACHE_TAG }}
113-
*.output=type=image,"name=${{ env.DOCKER_NAMESPACE }},${{ env.GHCR_NAMESPACE }}",push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
117+
*.output=type=image,"name=${{ env.DOCKER_NAMESPACE }},${{ env.GHCR_NAMESPACE }}",push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' && github.event_name != 'release' || (github.event_name == 'release' && github.event.action == 'published') }}
114118
115119
- name: 🔍 Debug Bake Metadata Output
116120
run: |

0 commit comments

Comments
 (0)