LennardZuendorf commited on
Commit
1f72faf
·
unverified ·
1 Parent(s): c5c1df2

Create version-cleanup.yml

Browse files
.github/workflows/version-cleanup.yml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Docker image build and publish workflow
2
+ # CREDIT: Adopted from
3
+ name: Docker Build & Publish
4
+
5
+ # running on every release and on manual dispatch
6
+ on:
7
+ workflow_dispatch:
8
+
9
+ env:
10
+ # set the registry to the GitHub Container Registry
11
+ REGISTRY: ghcr.io
12
+ # set github.repository as <account>/<repo>
13
+ IMAGE_NAME: ${{ github.repository }}:${{ github.ref }}
14
+
15
+ # jobs to run
16
+ jobs:
17
+
18
+ # cleanup job
19
+ cleanup:
20
+ runs-on: ubuntu-latest
21
+ permissions:
22
+ contents: read
23
+ packages: write
24
+ id-token: write
25
+
26
+ # steps to run on the job
27
+ steps:
28
+ - name: Delete Package Versions
29
+ uses: actions/[email protected]
30
+ with:
31
+ package-name: 'thesis-webapp'
32
+ package-type: 'container'
33
+ min-versions-to-keep: 2