Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
subchen authored May 8, 2022
1 parent 8e54034 commit ee79fe9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ env:
jobs:
release:
runs-on: ubuntu-latest
environment:
name: production

steps:
- uses: actions/setup-go@v3
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
###############################
FROM golang:1.14-alpine AS build
FROM golang:1.18-alpine AS build

RUN mkdir -p /go/src/github.com/subchen/frep
COPY . /go/src/github.com/subchen/frep
WORKDIR /go/src/github.com/subchen/frep

RUN apk add --no-cache make git
RUN make build-linux
RUN make clean build-linux

###############################
FROM alpine:3.11
FROM alpine:3.15

COPY --from=build /go/src/github.com/subchen/frep/_releases/frep-* /usr/local/bin/frep

Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ lint:
build:
go build -ldflags "$(LDFLAGS)"

build-linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -a -installsuffix cgo -ldflags "$(LDFLAGS)" -o _releases/frep-$(VERSION)-linux-amd64

build-all: clean fmt
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -a -installsuffix cgo -ldflags "$(LDFLAGS)" -o _releases/frep-$(VERSION)-linux-amd64
Expand Down

0 comments on commit ee79fe9

Please sign in to comment.