Skip to content

Commit

Permalink
Make tag-suffix case sensitive and quote github_output.
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec committed Feb 15, 2024
1 parent b6b92b5 commit 1d9a093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-php-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ jobs:
- name: Set tag suffix
id: pr
if: ${{ github.event_name == 'pull_request' }}
run: echo "tag-suffix=-edge" >> $GITHUB_OUTPUT
run: echo "tag-suffix=-edge" >> "$GITHUB_OUTPUT"
# Build our images.
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push devwithlando/${{ matrix.image }}:${{ matrix.tag }}${{ steps.pr.outputs.TAG_SUFFIX }}
- name: Build and push devwithlando/${{ matrix.image }}:${{ matrix.tag }}${{ steps.pr.outputs.tag_suffix }}
uses: docker/build-push-action@v4
with:
context: ${{ matrix.context }}
platforms: linux/amd64,linux/arm64
push: true
tags: devwithlando/${{ matrix.image }}:${{ matrix.tag }}${{ steps.pr.outputs.TAG_SUFFIX }}
tags: devwithlando/${{ matrix.image }}:${{ matrix.tag }}${{ steps.pr.outputs.tag_suffix }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down

0 comments on commit 1d9a093

Please sign in to comment.