Skip to content

Commit 65e4b07

Browse files
Added new version of deploy workflow
1 parent 84f4911 commit 65e4b07

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)