File tree Expand file tree Collapse file tree 4 files changed +37
-48
lines changed
Expand file tree Collapse file tree 4 files changed +37
-48
lines changed Original file line number Diff line number Diff line change 11---
2- name : Bug report
3- about : Create a report to help us improve
4- title : ' '
5- labels : ' '
6- assignees : ' '
7-
2+ name : PR
83---
94
10- ** Describe the bug**
11- A clear and concise description of what the bug is.
12-
13- ** To Reproduce**
14- Steps to reproduce the behavior:
15- 1 . Go to '...'
16- 2 . Click on '....'
17- 3 . Scroll down to '....'
18- 4 . See error
19-
20- ** Expected behavior**
21- A clear and concise description of what you expected to happen.
5+ ** Describe the PR**
226
237** Screenshots**
248If applicable, add screenshots to help explain your problem.
259
26- ** Desktop (please complete the following information):**
27- - OS: [ e.g. iOS]
28- - Browser [ e.g. chrome, safari]
29- - Version [ e.g. 22]
30-
31- ** Smartphone (please complete the following information):**
32- - Device: [ e.g. iPhone6]
33- - OS: [ e.g. iOS8.1]
34- - Browser [ e.g. stock browser, safari]
35- - Version [ e.g. 22]
36-
3710** Additional context**
3811Add any other context about the problem here.
Original file line number Diff line number Diff line change 5050 - name : Run linters
5151 run : |
5252 eirctl run vuln:check
53+
5354 - name : Unit Tests
5455 run : |
5556 eirctl run test:unit
Original file line number Diff line number Diff line change @@ -39,31 +39,34 @@ jobs:
3939 run : |
4040 echo "REVISION -> $GITHUB_SHA"
4141 echo "VERSION -> $GITVERSION_SEMVER"
42+
4243 release :
4344 runs-on : ubuntu-latest
44- container :
45- image : golang:1.24-bookworm
46- env :
47- FOO : Bar
4845 needs : set-version
4946 env :
5047 SEMVER : ${{ needs.set-version.outputs.semVer }}
5148 steps :
5249 - uses : actions/checkout@v4
5350 with :
5451 fetch-depth : 1
55- - name : install deps
52+
53+ -
uses :
ensono/actions/[email protected] 54+ with :
55+ version : latest
56+ isPrerelease : false
57+
58+ - name : git-deps
5659 run : |
57- apt-get update && apt-get install jq git -y
5860 git config --global --add safe.directory "$GITHUB_WORKSPACE"
5961 git config user.email ${{ github.actor }}[email protected] 6062 git config user.name ${{ github.actor }}
6163 - name : release library
6264 run : |
63- make GIT_TAG=${SEMVER} REVISION=$GITHUB_SHA tag
64- - name : release binary
65+ VERSION=${SEMVER} REVISION=$GITHUB_SHA eirctl run tag
66+
67+ - name : Build binary
6568 run : |
66- make REVISION=$GITHUB_SHA GIT_TAG =${SEMVER} PAT=${{ secrets.GITHUB_TOKEN }} cross-build
69+ eirctl run pipeline bin:release --set Version =${SEMVER} --set Revision=$GITHUB_SHA
6770
6871 - name : Release
6972
Original file line number Diff line number Diff line change @@ -16,14 +16,19 @@ contexts:
1616 - TMP
1717
1818pipelines :
19+ build :
20+ - task : build:unix
21+ - task : build:win
22+ depends_on : build:unix
23+
1924 unit:test:run :
2025 - task : unit:test:prereqs
2126 - task : unit:test
2227 depends_on : unit:test:prereqs
2328
24- release :
29+ bin: release :
2530 - task : clean:dir
26- - task : build
31+ - pipeline : build
2732 depends_on : clean:dir
2833
2934tasks :
@@ -62,27 +67,34 @@ tasks:
6267 - |
6368 rm -rf dist/
6469
65- build :
70+ build:win :
6671 context : go1x
6772 description : Builds Go binary
6873 command :
6974 - |
7075 mkdir -p .deps
7176 ldflags="-s -w -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Version={{.Version}}\" -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Revision={{.Revision}}\" -extldflags -static"
72- CGO_ENABLED=0 GOPATH=$PWD/.deps GOOS=${BUILD_GOOS} go build -mod=readonly -buildvcs=false -ldflags="$ldflags" -o dist/{{.BinName}}-${BUILD_GOOS}${BUILD_GOARCH}${BINARY_SUFFIX } .
77+ CGO_ENABLED=0 GOPATH=$PWD/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} go build -mod=readonly -buildvcs=false -ldflags="$ldflags" -o dist/{{.BinName}}-${BUILD_GOOS}${BUILD_GOARCH} .
7378 variations :
7479 - BUILD_GOOS : windows
7580 BUILD_GOARCH : amd64
76- BINARY_SUFFIX : " "
7781 - BUILD_GOOS : windows
7882 BUILD_GOARCH : " 386"
79- BINARY_SUFFIX : " "
83+ variables :
84+ RepoOwner : DevLabFoundry
85+ BinName : aws-cli-auth
86+
87+ build:unix :
88+ context : go1x
89+ description : Builds Go binary
90+ command :
91+ - |
92+ mkdir -p .deps
93+ ldflags="-s -w -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Version={{.Version}}\" -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Revision={{.Revision}}\" -extldflags -static"
94+ CGO_ENABLED=0 GOPATH=$PWD/.deps GOOS=${BUILD_GOOS} go build -mod=readonly -buildvcs=false -ldflags="$ldflags" -o dist/{{.BinName}}-${BUILD_GOOS}${BUILD_GOARCH} .
95+ variations :
8096 - BUILD_GOOS : darwin
81- BUILD_GOARCH : " "
82- BINARY_SUFFIX : " "
8397 - BUILD_GOOS : linux
84- BUILD_GOARCH : " "
85- BINARY_SUFFIX : " "
8698 variables :
8799 RepoOwner : DevLabFoundry
88100 BinName : aws-cli-auth
You can’t perform that action at this time.
0 commit comments