Skip to content

Commit

Permalink
Refine the docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
denverdino committed Jul 22, 2024
1 parent 94029bf commit f6cc359
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .DockerIgnore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.md
*.yaml
*.json
.git/
.github/
images-syncer
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.38
- uses: wangyoucao577/go-release-action@v1.51
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM golang:1.12.7 as builder
FROM golang:1.22.5 as builder
WORKDIR /go/src/github.com/AliyunContainerService/image-syncer
COPY ./ ./
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make
ENV GOPROXY=https://proxy.golang.com.cn,direct
RUN CGO_ENABLED=0 GOOS=linux make

FROM alpine:latest
WORKDIR /bin/
Expand Down
13 changes: 0 additions & 13 deletions Dockerfile.arm64

This file was deleted.

0 comments on commit f6cc359

Please sign in to comment.