Skip to content

Commit 9f67db9

Browse files
authored
Update deploy-docker.yml
1 parent 966cfaf commit 9f67db9

File tree

1 file changed

+12
-61
lines changed

1 file changed

+12
-61
lines changed

.github/workflows/deploy-docker.yml

+12-61
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Hub Pipeline
1+
name: Docker CI Pipeline
22

33
on:
44
push:
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
npm-install:
13+
pnpm-install:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
@@ -19,68 +19,21 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: 22
22-
cache: 'npm'
22+
cache: 'pnpm'
2323
- name: Cache dependencies
2424
uses: actions/cache@v4
2525
with:
2626
path: |
27-
.npm/
27+
.pnpm-store/
2828
node_modules/
29-
key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
29+
key: ${{ runner.os }}-pnpm-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
3030
restore-keys: |
31-
${{ runner.os }}-npm-cache-
31+
${{ runner.os }}-pnpm-cache-
3232
- name: Install dependencies
33-
run: npm install
34-
35-
linting:
36-
runs-on: ubuntu-latest
37-
needs: npm-install
38-
steps:
39-
- name: Checkout repository
40-
uses: actions/checkout@v4
41-
- name: Set up Node.js
42-
uses: actions/setup-node@v4
43-
with:
44-
node-version: 22
45-
cache: 'npm'
46-
- name: Cache dependencies
47-
uses: actions/cache/restore@v4
48-
with:
49-
path: |
50-
.npm/
51-
node_modules/
52-
key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
53-
restore-keys: |
54-
${{ runner.os }}-npm-cache-
55-
- name: Run linting
56-
run: npm run lint
57-
58-
test:
59-
runs-on: ubuntu-latest
60-
needs: npm-install
61-
steps:
62-
- name: Checkout repository
63-
uses: actions/checkout@v4
64-
- name: Set up Node.js
65-
uses: actions/setup-node@v4
66-
with:
67-
node-version: 22
68-
cache: 'npm'
69-
- name: Cache dependencies
70-
uses: actions/cache/restore@v4
71-
with:
72-
path: |
73-
.npm/
74-
node_modules/
75-
key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
76-
restore-keys: |
77-
${{ runner.os }}-npm-cache-
78-
- name: Run tests
79-
run: npm test
33+
run: pnpm install
8034

8135
build:
8236
runs-on: ubuntu-latest
83-
needs: [test, linting]
8437
env:
8538
VERSION_TAG: ${{ github.ref_name }}-${{ github.sha }}
8639
steps:
@@ -90,19 +43,17 @@ jobs:
9043
uses: actions/setup-node@v4
9144
with:
9245
node-version: 22
93-
- name: Install Ember CLI
94-
run: npm install -g ember-cli
9546
- name: Cache dependencies
96-
uses: actions/cache/restore@v4
47+
uses: actions/cache@v4
9748
with:
9849
path: |
99-
.npm/
50+
.pnpm-store/
10051
node_modules/
101-
key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
52+
key: ${{ runner.os }}-pnpm-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
10253
restore-keys: |
103-
${{ runner.os }}-npm-cache-
54+
${{ runner.os }}-pnpm-cache-
10455
- name: Build production
105-
run: ember build --prod
56+
run: pnpm run build
10657
- name: Upload dist folder as artifact
10758
uses: actions/upload-artifact@v4
10859
with:

0 commit comments

Comments
 (0)