Skip to content

Commit 34c01f3

Browse files
authored
feat: delete untagged images workflow (#79)
* feat: add workflow to delete untagged images * feat: update workflows to delete untaged images and run docker publish once
1 parent b3fa2bb commit 34c01f3

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/deploy-server.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ jobs:
5050
script: |
5151
cd ~
5252
curl -L get.swiftwave.org | ENVIRONMENT=staging bash
53+
54+
cleanup-untagged-images:
55+
uses: swiftwave-org/SwiftWave/.github/workflows/untagged-image-cleanup.yml@main

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Publish Docker Image
22
on:
33
workflow_dispatch:
44
workflow_call:
5-
push:
6-
branches: [ "main" ]
5+
76
env:
87
REGISTRY: ghcr.io
98
IMAGE_NAME: ${{ github.repository }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Cleanup Untagged Images
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
jobs:
7+
delete-untagged-images:
8+
name: Delete Untagged Images
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: bots-house/[email protected]
12+
with:
13+
owner: swiftwave-org
14+
name: swiftwave
15+
token: ${{ secrets.SWIFTWAVE_DELETE_PACKAGE }}
16+
untagged-keep-latest: 0

0 commit comments

Comments
 (0)