File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ tags :
6+ - " *"
7+
8+ jobs :
9+ image :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout Code
13+ uses : actions/checkout@v2
14+
15+ - name : Login to GitHub Container Registry
16+ uses : docker/login-action@v1
17+ with :
18+ registry : ghcr.io
19+ username : ${{ github.repository_owner }}
20+ password : ${{ secrets.GITHUB_TOKEN }}
21+
22+ - name : Build and Push Docker Image
23+ uses : docker/build-push-action@v2
24+ with :
25+ push : true
26+ tags : |
27+ ghcr.io/${{ github.repository }}:${{ github.sha }}
28+ ghcr.io/${{ github.repository }}:latest
29+
30+ - name : Export tgz
31+ run : |
32+ docker save ghcr.io/${{ github.repository }}:latest > gitpod-eks-guide.tar
33+
34+ - name : Release
35+ uses : ncipollo/release-action@v1
36+ if : startsWith(github.ref, 'refs/tags/')
37+ with :
38+ artifacts : gitpod-eks-guide.tar
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments