File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 1+ .dockerignore
2+ .github
3+ .README.md
Original file line number Diff line number Diff line change 77
88 cleanup-pg :
99 runs-on : ubuntu-latest
10+
1011 steps :
1112
1213 - name : Cleanup Docker images from GHCR
1314 uses : dataaxiom/ghcr-cleanup-action@v1
1415 with :
15- token : ${{ secrets.GITHUB_TOKEN }}
16- owner : ${{ github.repository_owner }}
17- repository : multi-repo/Postgres
16+ token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
17+ owner : multi-repo
18+ repository : postgres
1819 keep-n-tagged : 1
19- package : multi-repo/Postgres /pg
20+ package : postgres /pg
2021 dry-run : false
Original file line number Diff line number Diff line change 11name : Build Docker Images
22
33on :
4- push :
5- branches :
6- - main
74 release :
8- types : [created, published, released]
9-
10-
5+ types : [published]
6+ push :
7+ branches :
8+ - main
9+
1110jobs :
1211
1312 ghcr-build-pg :
@@ -60,10 +59,12 @@ jobs:
6059 - name : Trigger Delete Old Image Workflow
6160 run : |
6261 curl -X POST \
63- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
62+ -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
6463 -H "Accept: application/vnd.github.v3+json" \
65- https://api.github.com/repos/${{ github.repository }}/actions/workflows/delete-old-image.yml /dispatches \
64+ " https://api.github.com/repos/${{ github.repository }}/actions/workflows/$ACTION_NAME /dispatches"
6665 -d '{"ref": "main"}'
66+ env :
67+ ACTION_NAME : delete-old-image.yml
6768
6869
6970 deploy :
You can’t perform that action at this time.
0 commit comments