Skip to content

Commit 06323f5

Browse files
authored
Feature/build release using version as arg (#30)
* Updated galette version to 1.1.5 and upgraded to PHP 8.3 * changed build and publish to react to release version tag
1 parent 481be57 commit 06323f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker-build-and-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
push_to_registry:
1818
name: Push Docker image to Docker Hub
1919
runs-on: ubuntu-latest
20+
env:
21+
VERSION: ${{ github.event.release.tag_name }} # Set VERSION from release version
2022
steps:
2123
- name: Check out the repo
2224
uses: actions/checkout@v4
@@ -39,6 +41,10 @@ jobs:
3941
with:
4042
images: galette/galette
4143

44+
- name: Debug tags
45+
run: |
46+
echo "Generated tags: ${{ steps.meta.outputs.tags }}"
47+
4248
- name: Build and push Docker image
4349
uses: docker/build-push-action@v5.3.0
4450
with:
@@ -48,6 +54,8 @@ jobs:
4854
push: true
4955
tags: ${{ steps.meta.outputs.tags }}
5056
labels: ${{ steps.meta.outputs.labels }}
57+
build-args: |
58+
GALETTE_VERSION=${{ env.VERSION }}
5159
5260
- name: Docker Hub Description
5361
uses: peter-evans/dockerhub-description@v4

0 commit comments

Comments
 (0)