File tree Expand file tree Collapse file tree 3 files changed +34
-16
lines changed
Expand file tree Collapse file tree 3 files changed +34
-16
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-
13+ defaults :
14+ run :
15+ working-directory : mockserver
1416 steps :
1517 - name : Checkout repo
1618 uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
3537 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3638 IMAGE_PREFIX : ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/mockserver
3739 IMAGE_TAG : ${{ github.ref_name}}
38- run : nix develop -c goreleaser release --rm-dist
40+ run : goreleaser release --clean
Original file line number Diff line number Diff line change @@ -25,23 +25,37 @@ archives:
2525 - format : binary
2626
2727dockers :
28- - image_templates :
28+ - id : linux-amd64-mockserver
29+ goos : linux
30+ goarch : amd64
31+ image_templates :
2932 - ' {{ .Env.IMG_PRE }}/mockserver:{{ .Tag }}'
3033 # - "{{ .Env.IMG_PRE }}/mockserver:latest"
3134 - ' {{ .Env.IMG_PRE }}/mockserver:debug' # DEBUG: Using for testing
32- platforms :
33- - linux/amd64
34- - linux/arm64
3535 dockerfile : Dockerfile
36- use : buildx
37-
38- # Git tag management
39- git :
40- tag : true
41-
36+ build_flag_templates :
37+ - --platform=linux/amd64
38+ - --pull
39+ - --build-arg=TARGETARCH=amd64
40+ - --label=org.opencontainers.image.created={{.Date}}
41+ - --label=org.opencontainers.image.title={{.ProjectName}}
42+ - --label=org.opencontainers.image.revision={{.FullCommit}}
43+ - --label=org.opencontainers.image.version={{.Version}}
44+ - id : linux-arm64-mockserver
45+ goos : linux
46+ goarch : arm64
47+ image_templates :
48+ - ' {{ .Env.IMG_PRE }}/mockserver:{{ .Tag }}-arm64'
49+ # - "{{ .Env.IMG_PRE }}/mockserver:latest-arm64"
50+ - ' {{ .Env.IMG_PRE }}/mockserver:debug-arm64' # DEBUG: Using for testing
51+ dockerfile : Dockerfile
52+ build_flag_templates :
53+ - --platform=linux/arm64
54+ - --pull
55+ - --build-arg=TARGETARCH=arm64
56+ - --label=org.opencontainers.image.created={{.Date}}
57+ - --label=org.opencontainers.image.title={{.ProjectName}}
58+ - --label=org.opencontainers.image.revision={{.FullCommit}}
59+ - --label=org.opencontainers.image.version={{.Version}}
4260changelog :
4361 disable : ' true'
44-
45- before :
46- hooks :
47- - cmd : go mod tidy
Original file line number Diff line number Diff line change 11FROM golang:alpine as builder
22
3+ ARG TARGETARCH
4+
35WORKDIR /app
46
57COPY go.mod go.sum ./
You can’t perform that action at this time.
0 commit comments