Skip to content

Commit

Permalink
build(ci): fix multiple build-args for release job
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Oct 6, 2023
1 parent 1b0b79f commit 8323832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ jobs:
- uses: docker/[email protected]
with:
push: true
build-args: "VERSION=${{ inputs.tag || github.ref_name }},PGO_FILE=${{ github.workspace }}/default.pgo"
build-args: "VERSION=${{ inputs.tag || github.ref_name }}"
tags: "ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ inputs.tag || github.ref_name }}"
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ RUN go mod download
RUN apk add build-base

COPY . .
RUN CGO_ENABLED="1" go build -pgo "${PGO_FILE}" -ldflags "${LDFLAGS}" \
-o ./bin/teler-proxy ./cmd/teler-proxy
RUN CGO_ENABLED="1" go build -pgo "${PGO_FILE}" -ldflags "${LDFLAGS}" -o ./bin/teler-proxy ./cmd/teler-proxy

FROM alpine:latest

Expand Down

0 comments on commit 8323832

Please sign in to comment.