Skip to content

Commit

Permalink
Feature/build release using version as arg (#30)
Browse files Browse the repository at this point in the history
* Updated galette version to 1.1.5 and upgraded to PHP 8.3

* changed build and publish to react to release version tag
  • Loading branch information
grasdk authored Jan 12, 2025
1 parent 481be57 commit 06323f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.release.tag_name }} # Set VERSION from release version
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand All @@ -39,6 +41,10 @@ jobs:
with:
images: galette/galette

- name: Debug tags
run: |
echo "Generated tags: ${{ steps.meta.outputs.tags }}"
- name: Build and push Docker image
uses: docker/build-push-action@v5.3.0
with:
Expand All @@ -48,6 +54,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GALETTE_VERSION=${{ env.VERSION }}
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
Expand Down

0 comments on commit 06323f5

Please sign in to comment.