Skip to content

Commit

Permalink
fixes docker build invalid args
Browse files Browse the repository at this point in the history
  • Loading branch information
benammann committed May 31, 2022
1 parent 6b9c9b4 commit 888635b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Docker login
run: echo $CR_TOKEN | docker login -u $CR_USER --password-stdin
- name: Docker Build
run: docker build --pull -t "$IMAGE_NAME:latest" --build-arg BUILD_VERSION=$RELEASE_VERSION --build-arg BUILD_COMMIT=$GITHUB_SHA --build-arg DATE=$(date) .
run: DATE=$(date) docker build --pull -t "$IMAGE_NAME:latest" --build-arg BUILD_VERSION=$RELEASE_VERSION --build-arg BUILD_COMMIT=$GITHUB_SHA --build-arg DATE=$DATE .
- name: Docker Push (latest tag)
run: docker push "$IMAGE_NAME:latest"
- name: Docker Tag latest as build tag
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ENV BUILD_COMMIT="$BUILD_COMMIT"
ENV BUILD_DATE="$BUILD_DATE"

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o git-secrets main.go -ldflags "-X main.version=$BUILD_VERSION -X main.commit=$BUILD_COMMIT -X main.date=$BUILD_DATE"
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o git-secrets -ldflags "-X main.version=$BUILD_VERSION -X main.commit=$BUILD_COMMIT -X main.date=$BUILD_DATE"

FROM alpine:latest
WORKDIR /git-secrets
Expand Down

0 comments on commit 888635b

Please sign in to comment.