47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
|
# Copyright 2023 Google LLC
|
||
|
#
|
||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
# you may not use this file except in compliance with the License.
|
||
|
# You may obtain a copy of the License at
|
||
|
#
|
||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||
|
#
|
||
|
# Unless required by applicable law or agreed to in writing, software
|
||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
# See the License for the specific language governing permissions and
|
||
|
# limitations under the License.
|
||
|
|
||
|
values:
|
||
|
values:
|
||
|
module.registry-docker.google_artifact_registry_repository.registry:
|
||
|
cleanup_policies:
|
||
|
- id: keep-tagged-release
|
||
|
action: KEEP
|
||
|
condition:
|
||
|
- package_name_prefixes:
|
||
|
- webapp
|
||
|
- mobile
|
||
|
tag_prefixes:
|
||
|
- release
|
||
|
tag_state: TAGGED
|
||
|
- id: keep-5-versions
|
||
|
action: KEEP
|
||
|
condition: []
|
||
|
most_recent_versions:
|
||
|
- keep_count: 5
|
||
|
package_name_prefixes:
|
||
|
- test
|
||
|
cleanup_policy_dry_run: false
|
||
|
format: DOCKER
|
||
|
location: europe-west1
|
||
|
mode: STANDARD_REPOSITORY
|
||
|
project: project-id
|
||
|
repository_id: docker-cleanup-policies
|
||
|
|
||
|
|
||
|
counts:
|
||
|
google_artifact_registry_repository: 1
|
||
|
modules: 1
|
||
|
resources: 1
|