-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (55 loc) · 1.88 KB
/
cleanup_images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Cleanup Docker images on ghcr.io
on:
pull_request:
branches:
- main
permissions:
packages: write
env:
PACKAGE_NAMES: |
alfresco-transform-router,\n
alfresco-shared-file-store,\n
alfresco-content-repository,\n
alfresco-imagemagick,\n
alfresco-misc,\n
alfresco-libreoffice,\n
alfresco-pdf-renderer,\n
alfresco-tika,\n
alfresco-elasticsearch-live-indexing-content,\n
alfresco-elasticsearch-live-indexing-path,\n
alfresco-elasticsearch-live-indexing-metadata,\n
alfresco-transform-core-aio,\n
alfresco-elasticsearch-live-indexing,\n
alfresco-share,\n
alfresco-ooi-service,\n
alfresco-ms-teams-service
jobs:
cleanup-pr:
runs-on: ubuntu-latest
steps:
# - name: Set package names
# run: |
# echo "PACKAGE_NAMES=alfresco-transform-router,\
# alfresco-shared-file-store,\
# alfresco-content-repository,\
# alfresco-imagemagick,\
# alfresco-misc,\
# alfresco-libreoffice,\
# alfresco-pdf-renderer,\
# alfresco-tika,\
# alfresco-elasticsearch-live-indexing-content,\
# alfresco-elasticsearch-live-indexing-path,\
# alfresco-elasticsearch-live-indexing-metadata,\
# alfresco-transform-core-aio,\
# alfresco-elasticsearch-live-indexing,\
# alfresco-share,\
# alfresco-ooi-service,alfresco-ms-teams-service" >> $GITHUB_ENV
- name: Remove tag ${{format('pr-{0}', github.event.pull_request.number)}}
uses: dataaxiom/ghcr-cleanup-action@98b4022383d6ddb70ccbf6a378b4d8c67a60f066
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
owner: Alfresco
repository: alfresco-dockerfiles-bakery
packages: ${{ env.PACKAGE_NAMES }}
delete-tags: ${{format('pr-{0}', github.event.pull_request.number)}}
dry-run: true