File tree 5 files changed +61
-81
lines changed
5 files changed +61
-81
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ pull_request :
4
+ workflow_dispatch :
5
+ jobs :
6
+ ci :
7
+ runs-on : ubuntu-latest
8
+ if : github.repository == 'aws/eks-charts'
9
+ steps :
10
+ -
11
+ name : Checkout
12
+ uses : actions/checkout@v3
13
+ with :
14
+ fetch-depth : 0
15
+ - uses : actions/setup-go@v3
16
+ with :
17
+ go-version : 1.19
18
+ check-latest : true
19
+ - run : make install-toolchain
20
+ - run : make verify
21
+ - run : make package
Original file line number Diff line number Diff line change
1
+ name : release
2
+ on :
3
+ push :
4
+ branches : [master]
5
+ tags :
6
+ - " v*.*.*"
7
+ workflow_dispatch :
8
+ permissions :
9
+ id-token : write
10
+ pull-requests : write
11
+ contents : write
12
+ jobs :
13
+ release :
14
+ runs-on : ubuntu-latest
15
+ if : github.repository == 'aws/eks-charts'
16
+ steps :
17
+ -
18
+ name : Checkout
19
+ uses : actions/checkout@v3
20
+ with :
21
+ fetch-depth : 0
22
+ - uses : actions/setup-go@v3
23
+ with :
24
+ go-version : 1.19
25
+ check-latest : true
26
+ - run : make install-toolchain
27
+ - run : make verify
28
+ - run : make package publish
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ GITHUB_REPO : ${{ github.repository }}
Original file line number Diff line number Diff line change 1
- [ ![ CircleCI ] ( https://circleci .com/gh/ aws/eks-charts.svg?style=svg )] ( https://circleci.com/gh/aws/eks-charts )
1
+ ![ EKS Charts ] ( https://github .com/aws/eks-charts/actions/workflows/ci.yaml/badge.svg )
2
2
3
3
## EKS Charts
4
4
Original file line number Diff line number Diff line change @@ -7,22 +7,23 @@ TOOLS_DIR="${BUILD_DIR}/tools"
7
7
STABLE=" ${GIT_REPO_ROOT} /stable"
8
8
PACKAGE_DIR=" ${GIT_REPO_ROOT} /build"
9
9
export PATH=" ${TOOLS_DIR} :${PATH} "
10
+ VERSION=" $( git describe --tags --always) "
10
11
11
- if echo " ${CIRCLE_TAG } " | grep -Eq " ^v[0-9]+(\.[0-9]+){2}$" ; then
12
- REPOSITORY= " https://eks-bot: ${GITHUB_TOKEN} @github.com/aws/eks-charts.git "
12
+ if echo " ${VERSION } " | grep -Eq " ^v[0-9]+(\.[0-9]+){2}$" ; then
13
+ git fetch --all
13
14
git config user.email
[email protected]
14
15
git config user.name eks-bot
15
- git remote set-url origin ${REPOSITORY}
16
+ git remote set-url origin https://x-access-token:${GITHUB_TOKEN} @github.com/${GITHUB_REPO}
17
+ git config pull.rebase false
16
18
git checkout gh-pages
17
19
mv -n $PACKAGE_DIR /stable/* .tgz .
18
20
helmv3 repo index . --url https://aws.github.io/eks-charts
19
21
git add .
20
- git commit -m " Publish stable charts ${CIRCLE_TAG } "
22
+ git commit -m " Publish stable charts ${VERSION } "
21
23
git push origin gh-pages
22
24
echo " ✅ Published charts"
23
25
else
24
26
echo " Not a valid semver release tag! Skip charts publish"
25
- # Need to exit 0 here since circle ci runs this everytime
26
- exit 0
27
+ exit 1
27
28
fi
28
-
29
+
You can’t perform that action at this time.
0 commit comments