Skip to content

Commit

Permalink
chore: Update go.yaml workflow to use static linking for go_web_server
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Jul 5, 2024
1 parent f7bee8f commit f14bf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: build-and-push
run: |
go mod tidy
CGO_ENABLED=0 go build -ldflags '-w -s' -a -installsuffix cgo -o go_web_server go_web_server/cmd/go_web_server
CGO_ENABLED=0 go build -ldflags '-w -s -extldflags "-static"' -a -installsuffix cgo -o go_web_server go_web_server/cmd/go_web_server
podman build -f Dockerfile . -t docker.io/arloor/go_web_server:${{ github.sha }} -t docker.io/arloor/go_web_server:latest
podman login docker.io -u arloor -p ${{ env.REGISTRY_PASSWORD }}
podman push docker.io/arloor/go_web_server:${{ github.sha }}
Expand Down

0 comments on commit f14bf20

Please sign in to comment.