File tree Expand file tree Collapse file tree 2 files changed +7
-32
lines changed
Expand file tree Collapse file tree 2 files changed +7
-32
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ delete_pr_images() {
7171 if [[ -n " ${version_id} " ]]; then
7272 echo " Deleting image with tag ${tag} (version ID: ${version_id} ) from container ${container_name} ..."
7373 gh api \
74- -H " Accept: application/vnd.github+json" \
75- -X DELETE \
76- " /orgs/nhsdigital/packages/container/${package_name} /versions/${version_id} "
74+ -H " Accept: application/vnd.github+json" \
75+ -X DELETE \
76+ " /orgs/nhsdigital/packages/container/${package_name} /versions/${version_id} "
7777 fi
7878 done
7979 fi
Original file line number Diff line number Diff line change 1- name : " Delete old cloudformation stacks "
1+ name : " Delete old images "
22
33# Controls when the action will run - in this case triggered manually and on schedule
44on :
99 branches : [main]
1010
1111jobs :
12- delete-old-cloudformation-stacks :
13- runs-on : ubuntu-22.04
14- permissions :
15- id-token : write
16- contents : read
17-
18- steps :
19- - name : Checkout local code
20- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
21- with :
22- ref : ${{ env.BRANCH_NAME }}
23- fetch-depth : 0
24-
25- - name : Configure AWS Credentials
26- uses : aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7
27- with :
28- aws-region : eu-west-2
29- role-to-assume : ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
30- role-session-name : psu-delete-old-stacks
31-
32- - name : delete stacks
33- shell : bash
34- working-directory : .github/scripts
35- run : ./delete_stacks.sh
36- env :
37- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38-
39- delete-old-proxygen-deployments :
12+ delete-old-pushed-images :
4013 runs-on : ubuntu-22.04
4114 permissions :
4215 id-token : write
5326 shell : bash
5427 working-directory : .github/scripts
5528 run : ./delete_unused_images.sh
29+ env :
30+ GGH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments