Skip to content

Commit

Permalink
Update go version to 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed May 25, 2022
1 parent a007a42 commit 1d1ca36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- name: Build
run: /bin/bash build_executables.sh
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.16-buster
FROM golang:1.18-buster

COPY . /go/src/github.com/jadolg/DockerImageSave/
WORKDIR /go/src/github.com/jadolg/DockerImageSave/

RUN CGO_ENABLED=0 go build -ldflags '-w -s' -a -installsuffix cgo github.com/jadolg/DockerImageSave/cmd/DockerImageSaveServer

FROM alpine:3.13
FROM alpine:3.16
COPY --from=0 /go/src/github.com/jadolg/DockerImageSave/DockerImageSaveServer /executables/DockerImageSaveServer
WORKDIR /executables/
CMD [ "./DockerImageSaveServer" ]

0 comments on commit 1d1ca36

Please sign in to comment.