File tree Expand file tree Collapse file tree 7 files changed +5
-121
lines changed
Expand file tree Collapse file tree 7 files changed +5
-121
lines changed Original file line number Diff line number Diff line change 1010 name : Build and Release
1111 runs-on : ubuntu-latest
1212 environment : integration
13- defaults :
14- run :
15- working-directory : mockserver
1613 steps :
1714 - name : Checkout repo
1815 uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
3330 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3431 IMAGE_PREFIX : ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/mockserver
3532 IMAGE_TAG : ${{ github.ref_name}}
36- run : goreleaser release --clean
33+ run : goreleaser release --clean -f ./mockserver/.goreleaser.yml
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ builds:
2020 - amd64
2121 - arm64
2222 ldflags :
23- - ' -s -w' # Strip debug information to reduce binary size
24- binary : ' mockserver_{{ .Os }}_{{ .Arch }}'
23+ - ' -s -w'
2524
2625archives :
2726 - format : binary
@@ -36,7 +35,6 @@ dockers:
3635 build_flag_templates :
3736 - --platform=linux/amd64
3837 - --pull
39- - --build-arg=TARGETARCH=amd64
4038 - --label=org.opencontainers.image.created={{.Date}}
4139 - --label=org.opencontainers.image.title={{.ProjectName}}
4240 - --label=org.opencontainers.image.revision={{.FullCommit}}
@@ -50,12 +48,11 @@ dockers:
5048 build_flag_templates :
5149 - --platform=linux/arm64
5250 - --pull
53- - --build-arg=TARGETARCH=arm64
5451 - --label=org.opencontainers.image.created={{.Date}}
5552 - --label=org.opencontainers.image.title={{.ProjectName}}
5653 - --label=org.opencontainers.image.revision={{.FullCommit}}
5754 - --label=org.opencontainers.image.version={{.Version}}
5855
5956before :
6057 hooks :
61- - go mod tidy
58+ - cd mockserver && go mod tidy
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- FROM golang:alpine AS builder
2-
3- ARG TARGETARCH
4-
5- WORKDIR /app
6-
7- COPY go.mod go.sum ./
8- RUN go mod download
9- COPY *.go ./
10- RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -o mockserver .
11-
121FROM scratch
13-
14- COPY --from=builder /app/mockserver /mockserver
15-
16- EXPOSE 8080
17- ENTRYPOINT [ "/mockserver" ]
2+ COPY mockserver /mockserver
3+ ENTRYPOINT [ "mockserver" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments