File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and push docker image
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ tags : [ 'v*.*.*' ]
7+ pull_request :
8+ branches : [ "main" ]
9+
10+ jobs :
11+ build :
12+ name : " build"
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Install pnpm
17+ run : |
18+ sudo apt install nodejs npm
19+ sudo npm install -g pnpm
20+ - name : Install project dependencies
21+ run : |
22+ pnpm install
23+ - name : Build eirb.fr
24+ run : |
25+ pnpm build
26+ - name : Upload to artefact
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : " build"
30+ path : ${{ github.workspace }}/dist
31+ include-hidden-files : true
32+
33+
34+ deploy :
35+ needs : [ build ]
36+ uses : Eirbware/.github/.github/workflows/deploy-static.yml@master
37+ # portainer_stack_webhook must be defined
38+ with :
39+ remote_user : " www-eirb"
40+ directory_to_copy : " ./dist"
41+ artifact_name : build
42+ artifact_path : ./dist
43+ secrets : inherit
You can’t perform that action at this time.
0 commit comments