Skip to content

Commit

Permalink
fix: docker image CI
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Apr 3, 2024
1 parent b5111cb commit 1f5baae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
COMMIT=$GITHUB_SHA
COMMIT=${{ github.event.pull_request.head.sha || github.sha }}
- name: Build and push DAEMON Docker image
id: docker_daemon_build
uses: docker/build-push-action@v5
Expand All @@ -68,4 +68,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
COMMIT=$GITHUB_SHA
COMMIT=${{ github.event.pull_request.head.sha || github.sha }}
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ jobs:
- name: Build (Linux)
if: matrix.platform == 'ubuntu-latest'
run: |
CGO_ENABLED=1 go build -o /usr/local/bin/ipsw -ldflags "-s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion="v1.0.0" -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit==$GITHUB_SHA" ./cmd/ipsw
CGO_ENABLED=1 go build -o /usr/local/bin/ipsw -ldflags "-s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion="v1.0.0" -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit=${{ github.event.pull_request.head.sha || github.sha }}" ./cmd/ipsw
- name: Build (macOS)
if: matrix.platform == 'macos-13'
run: |
env | grep PATH
sudo CGO_ENABLED=1 go build -o /usr/local/sbin/ipsw -ldflags "-s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion="v1.0.0" -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit==$GITHUB_SHA" ./cmd/ipsw
sudo CGO_ENABLED=1 go build -o /usr/local/sbin/ipsw -ldflags "-s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion="v1.0.0" -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit=${{ github.event.pull_request.head.sha || github.sha }}" ./cmd/ipsw
- name: Build (Windows)
if: matrix.platform == 'windows-latest'
env:
Expand Down

0 comments on commit 1f5baae

Please sign in to comment.