We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a90c85d commit 24c8b39Copy full SHA for 24c8b39
1 file changed
.github/workflows/build-push-image.yml
@@ -2,9 +2,11 @@ name: Build and publish Docker image
2
3
on:
4
push:
5
- branches: [ "main" ]
6
- pull_request:
7
+ branches:
+ - main
+ - 'release/*'
8
+# pull_request:
9
+# branches: [ "main" ]
10
11
jobs:
12
@@ -34,5 +36,12 @@ jobs:
34
36
with:
35
37
context: .
38
push: true
- tags: ${{ steps.meta.outputs.tags }}
39
+ tags: |
40
+ ${{ if startsWith(github.ref, 'refs/tags/') }}
41
+ unic/drupal-php:${{ github.ref.replace('refs/tags/', '') }}
42
+ {{ else if startsWith(github.ref, 'refs/heads/main') }}
43
+ unic/drupal-php:latest
44
+ {{ else if startsWith(github.ref, 'refs/heads/release/') }}
45
+ unic/drupal-php:${{ github.ref.replace('refs/heads/release/', '') }}-latest
46
+ {{ endif }}
47
labels: ${{ steps.meta.outputs.labels }}
0 commit comments