Skip to content

Commit

Permalink
feat: clean acr for repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bryn-pins committed Dec 23, 2024
1 parent 37aa2e4 commit c327590
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azure-pipelines-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ resources:
include:
- main

variables:
- group: pipeline_secrets

extends:
template: stages/wrapper_cd.yml@templates
parameters:
Expand Down
36 changes: 36 additions & 0 deletions azure-purge-container-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
pr: none
trigger: none

schedules:
- cron: "0 6 * * 1-5"
displayName: Weekday 07:00 Cleanup
branches:
include:
- main

resources:
repositories:
- repository: templates
type: github
endpoint: Planning-Inspectorate
name: Planning-Inspectorate/common-pipeline-templates
ref: feat/additional-scripts

pool: pins-odt-agent-pool

variables:
- group: pipeline_secrets

jobs:
- job: purge
displayName: Cleanup Container Registry Images
steps:
- template: steps/azure_auth.yml@templates
parameters:
subscriptionId: edb1ff78-90da-4901-a497-7e79f966f8e2
- template: steps/azure_container_registry_purge.yml@templates
parameters:
azurecrName: pinscrsharedtoolinguks
repository: appeal-planning-decision/appeals-service-api
workspace:
clean: all

0 comments on commit c327590

Please sign in to comment.