Skip to content

Commit

Permalink
ci: Update Dockerfile flow
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Apr 24, 2023
1 parent c1022f1 commit 27a9fe9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/template_sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Launch Generate
# run: task sdk:generate VERSION=${{ inputs.VERSION }} -- ${{ matrix.sdk }}
- name: Launch Generate
run: task sdk:generate VERSION=${{ inputs.VERSION }} -- ${{ matrix.sdk }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Upgrade Release to ${{ inputs.VERSION }}
Expand Down
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,8 @@ ARG VERSION
ARG SEGMENT_WRITE_KEY
WORKDIR /go/src/github.com/numary/ledger
# get deps first so it's cached
COPY go.mod .
COPY go.sum .
RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
--mount=type=cache,id=gobuild,target=/root/.cache/go-build \
go mod download
COPY . .
RUN --mount=type=cache,id=gomod,target=/go/pkg/mod \
--mount=type=cache,id=gobuild,target=/root/.cache/go-build \
CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH \
RUN CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH \
CC=$TARGETARCH-linux-gnu-gcc \
go build -o numary -tags json1,netgo \
-ldflags="-X github.com/numary/ledger/cmd.Version=${VERSION} \
Expand Down

0 comments on commit 27a9fe9

Please sign in to comment.