Skip to content

Commit 693723c

Browse files
committed
fix: ECR mirroring only overrides existing images
This makes it impossible to delete an image currently in production but the trade-off is that we get an updated DB only if we are using the latest version of Trivy. The experience is not very different from today where we update the latest image and if we are not using it in codacy-tools the update is not actually used by our users, so basically we are not losing anything
1 parent a9ec845 commit 693723c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
codacy: codacy/base@13.0.2
4+
codacy: codacy/base@dev:13.0.4-featecroverwriteonlyexisting.1.sha.debd249
55
codacy_plugins_test: codacy/plugins-test@2.1.2
66

77
references:
@@ -125,7 +125,7 @@ workflows:
125125
source_name: codacy/codacy-trivy
126126
mirror_name: codacy/codacy-trivy
127127
source_tag: $(cat .previous_version)
128-
force: true
128+
overwrite_only_existing: true
129129
requires:
130130
- publish_dockerhub
131131
- codacy/mirror_to_ecr:
@@ -135,7 +135,7 @@ workflows:
135135
source_name: codacy/codacy-trivy
136136
mirror_name: codacy/codacy-trivy
137137
source_tag: $(cat .previous_version)
138-
force: true
138+
overwrite_only_existing: true
139139
requires:
140140
- publish_dockerhub
141141
- codacy/mirror_to_ecr:
@@ -145,6 +145,6 @@ workflows:
145145
source_name: codacy/codacy-trivy
146146
mirror_name: codacy/codacy-trivy
147147
source_tag: $(cat .previous_version)
148-
force: true
148+
overwrite_only_existing: true
149149
requires:
150150
- publish_dockerhub

0 commit comments

Comments
 (0)