File tree Expand file tree Collapse file tree 2 files changed +23
-10
lines changed Expand file tree Collapse file tree 2 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -118,15 +118,15 @@ jobs:
118118 platforms : linux/amd64,linux/arm64
119119 cache-from : ' type=local,src=/tmp/.buildx-cache'
120120 cache-to : ' type=local,dest=/tmp/.buildx-cache'
121- tags : ghcr.io/${{ github.repository }}:${{ github.sha }}
121+ tags : ghcr.io/${{ github.repository }}:smoke- ${{ github.sha }}
122122 smoke :
123123 name : Smoke test
124124 needs : containerize
125125 runs-on : ubuntu-latest
126126 timeout-minutes : 30
127127 services :
128128 app :
129- image : ghcr.io/${{ github.repository }}:${{ github.sha }}
129+ image : ghcr.io/${{ github.repository }}:smoke- ${{ github.sha }}
130130 options : ' --init --read-only'
131131 env :
132132 NODE_ENV : test
@@ -144,11 +144,3 @@ jobs:
144144 run : npm run test:smoke
145145 env :
146146 PORT : ${{ job.services.app.ports['8080'] }}
147- - name : Remove CI container image
148- uses : bots-house/ghcr-delete-image-action@v1.0.1
149- if : always() && github.run_number != 1
150- with :
151- owner : ${{ github.repository_owner }}
152- name : ${{ github.event.repository.name }}
153- tag : ${{ github.sha }}
154- token : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Prune test container images
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 5 * * 3'
6+ workflow_dispatch : {}
7+
8+ jobs :
9+ ghcr :
10+ name : GitHub Container Registry
11+ runs-on : ubuntu-latest
12+ timeout-minutes : 30
13+ steps :
14+ - name : Prune smoke test images
15+ uses : snok/container-retention-policy@v2
16+ with :
17+ image-names : smoke-*
18+ cut-off : One week ago UTC
19+ keep-at-least : 1
20+ account-type : org
21+ token : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments