Skip to content

Commit

Permalink
fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
a0s committed Aug 23, 2020
1 parent 9b1ed24 commit 889c1df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binary-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
mkdir build
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 \
--build-arg VERSION=${{ steps.variables.outputs.FULL_VERSION }} \
--build-arg FULL_VERSION=${{ steps.variables.outputs.FULL_VERSION }} \
-t a00s/${{ steps.variables.outputs.REPOSITORY_NAME }}:latest \
-o type=local,dest=build \
.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 \
--build-arg VERSION=${{ steps.variables.outputs.FULL_VERSION }} \
--build-arg FULL_VERSION=${{ steps.variables.outputs.FULL_VERSION }} \
-t a00s/${{ steps.variables.outputs.REPOSITORY_NAME }}:${{ steps.variables.outputs.SOURCE_TAG }} \
. \
--push
Expand All @@ -44,7 +44,7 @@ jobs:
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 \
--build-arg VERSION=${{ steps.variables.outputs.FULL_VERSION }} \
--build-arg FULL_VERSION=${{ steps.variables.outputs.FULL_VERSION }} \
-t a00s/${{ steps.variables.outputs.REPOSITORY_NAME }}:latest \
. \
--push
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.14-alpine AS builder
ARG VERSION="unknown"
ARG FULL_VERSION="unknown"
WORKDIR /app
COPY . /app
RUN CGO_ENABLED=0 go build -ldflags="-w -s -X main.VersionString=$VERSION" -o "/app/tinkoff-invest-dumper"
RUN CGO_ENABLED=0 go build -ldflags="-w -s -X main.VersionString=$FULL_VERSION" -o "/app/tinkoff-invest-dumper"

FROM scratch
WORKDIR /app
Expand Down

0 comments on commit 889c1df

Please sign in to comment.