File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,40 @@ jobs:
7070 uses : actions/setup-node@v3
7171 with :
7272 node-version : " lts/*"
73- - name : Generate Documentation
74- run : ./gradlew dokkaHtml
7573 - name : Release
7674 env :
7775 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7876 run : |
7977 npm install
8078 npx semantic-release
79+ docker-image-delivery :
80+ needs :
81+ - release
82+ runs-on : ubuntu-latest
83+ if : needs.release.outputs.release-status == released
84+ env :
85+ REGISTRY : ghcr.io
86+ IMAGE_NAME : ${{ github.repository }}
87+ steps :
88+ - name : Checkout the repository
89+ uses : actions/checkout@v3
90+ with :
91+ submodules : recursive
92+ fetch-depth : 0
93+ - name : Login to GitHub Container registry
94+ uses : docker/login-action@v2.1.0
95+ with :
96+ registry : ${{ env.REGISTRY }}
97+ username : ${{ github.actor }}
98+ password : ${{ secrets.GITHUB_TOKEN }}
99+ - id : version
100+ run : echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
101+ - name : Build and push the image to GitHub Container registry
102+ uses : docker/build-push-action@3.3.0
103+ with :
104+ context : .
105+ push : true
106+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
81107 documentation-deploy :
82108 needs :
83109 - release
@@ -106,6 +132,8 @@ jobs:
106132 needs :
107133 - build
108134 - release
135+ - docker-image-delivery
136+ - documentation-deploy
109137 if : >-
110138 always() && (
111139 contains(join(needs.*.result, ','), 'failure')
You can’t perform that action at this time.
0 commit comments