Skip to content

Commit 9cd7db2

Browse files
committed
update workflow
1 parent df79a55 commit 9cd7db2

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,29 @@ on:
99
permissions:
1010
contents: read
1111

12+
concurrency:
13+
group: ci-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
lint:
1418
runs-on: ubuntu-24.04-arm
1519

1620
steps:
17-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
21+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
1822
with:
1923
persist-credentials: false
2024

2125
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
22-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
26+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
2327
with:
2428
node-version: 25
2529

2630
- name: find pnpm cache path
2731
id: cache
2832
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
2933

30-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
34+
- uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5
3135
with:
3236
path: ${{ steps.cache.outputs.path }}
3337
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -55,20 +59,20 @@ jobs:
5559
runs-on: ubuntu-24.04-arm
5660

5761
steps:
58-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
62+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
5963
with:
6064
persist-credentials: false
6165

6266
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
63-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
67+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
6468
with:
6569
node-version: 25
6670

6771
- name: find pnpm cache path
6872
id: cache
6973
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
7074

71-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
75+
- uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5
7276
with:
7377
path: ${{ steps.cache.outputs.path }}
7478
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -84,20 +88,20 @@ jobs:
8488
runs-on: ubuntu-24.04-arm
8589

8690
steps:
87-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
91+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
8892
with:
8993
persist-credentials: false
9094

9195
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
92-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
96+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
9397
with:
9498
node-version: 25
9599

96100
- name: find pnpm cache path
97101
id: cache
98102
run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT"
99103

100-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
104+
- uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5
101105
with:
102106
path: ${{ steps.cache.outputs.path }}
103107
key: v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -121,7 +125,7 @@ jobs:
121125
steps:
122126
- name: Docker meta
123127
id: meta
124-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
128+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
125129
with:
126130
images: |
127131
ghcr.io/${{ github.repository }}
@@ -131,14 +135,14 @@ jobs:
131135
132136
- name: Login to GHCR
133137
if: github.ref == 'refs/heads/main'
134-
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
138+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
135139
with:
136140
registry: ghcr.io
137141
username: ${{ github.actor }}
138142
password: ${{ secrets.GITHUB_TOKEN }}
139143

140144
- name: Build and maybe Push Docker image
141-
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
145+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
142146
with:
143147
push: ${{ github.ref == 'refs/heads/main' }}
144148
tags: ${{ steps.meta.outputs.tags }}
@@ -149,7 +153,7 @@ jobs:
149153
deploy:
150154
if: github.ref == 'refs/heads/main'
151155
needs: [lint, test, typecheck, build]
152-
runs-on: ubuntu-24.04-arm
156+
runs-on: ubuntu-slim
153157
environment:
154158
name: prod
155159
url: https://arm.haglund.dev/api

0 commit comments

Comments
 (0)