Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy <[email protected]>
  • Loading branch information
TommyTran732 committed Sep 9, 2024
1 parent 88cc4f5 commit 4ddc770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

- name: Extract version for tags
run: |
echo "FULL_VERSION=$(grep -oP '(?<=VERSION=).*' Alpine/Dockerfile)" >> $GITHUB_ENV
echo "MAJOR_VERSION=$(grep -oP '(?<=VERSION=).*' Alpine/Dockerfile | head -c2)" >> $GITHUB_ENV
echo "FULL_VERSION=$(grep -oP '(?<=VERSION=).*' Dockerfile)" >> $GITHUB_ENV
echo "MAJOR_VERSION=$(grep -oP '(?<=VERSION=).*' Dockerfile | head -c2)" >> $GITHUB_ENV
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
id: build-and-push
uses: docker/build-push-action@v6
with:
context: Alpine
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 4ddc770

Please sign in to comment.