File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI - Staging
2+
3+ on :
4+ push :
5+ branches-ignore : [main]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : actions/setup-node@v4
13+ with :
14+ node-version : ' 20'
15+ - run : corepack enable && corepack prepare pnpm@10.33.0 --activate
16+ - run : pnpm install --no-frozen-lockfile
17+ - run : pnpm build
18+ - run : pnpm test
19+
20+ docker :
21+ needs : build
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v4
25+ - uses : docker/setup-buildx-action@v2
26+ - uses : docker/login-action@v2
27+ with :
28+ username : ${{ secrets.DOCKERHUB_USERNAME }}
29+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
30+ - uses : docker/build-push-action@v4
31+ with :
32+ context : .
33+ push : true
34+ tags : |
35+ chafah/nodejs-app:${{ github.ref_name }}-staging
36+ chafah/nodejs-app:staging
You can’t perform that action at this time.
0 commit comments