1919 steps :
2020 - name : Checkout code
2121 uses : actions/checkout@v5
22- - name : Configure AWS credentials
23- uses : aws-actions/configure-aws-credentials@v5
24- with :
25- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
26- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
27- aws-region : us-east-2
28- - name : Login to AWS ECR
29- id : login-ecr
30- uses : aws-actions/amazon-ecr-login@v2
3122 - name : Login to OCI Registry
3223 id : login-ocir
3324 uses :
oracle-actions/[email protected] @@ -41,16 +32,13 @@ jobs:
4132 compartment : ${{ secrets.OCI_COMPARTMENT_OCID }}
4233 - name : Build and push dbmigrator image
4334 env :
44- ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
4535 OCIR_REGISTRY : ${{ steps.login-ocir.outputs.ocir_endpoint }}
4636 OCIR_REPOSITORY : ${{ steps.get-ocir-repository-dbmigrator.outputs.repo_path }}
4737 run : |
4838 docker build \
4939 -f database/migrations/Dockerfile \
50- -t $ECR_REGISTRY/dbmigrator:$GITHUB_SHA \
5140 -t $OCIR_REPOSITORY:$GITHUB_SHA \
5241 .
53- docker push $ECR_REGISTRY/dbmigrator:$GITHUB_SHA
5442 docker push $OCIR_REPOSITORY:$GITHUB_SHA
5543
5644 build-apiserver-image :
5947 steps :
6048 - name : Checkout code
6149 uses : actions/checkout@v5
62- - name : Configure AWS credentials
63- uses : aws-actions/configure-aws-credentials@v5
64- with :
65- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
66- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
67- aws-region : us-east-2
68- - name : Login to AWS ECR
69- id : login-ecr
70- uses : aws-actions/amazon-ecr-login@v2
7150 - name : Login to OCI Registry
7251 id : login-ocir
7352 uses :
oracle-actions/[email protected] @@ -81,16 +60,13 @@ jobs:
8160 compartment : ${{ secrets.OCI_COMPARTMENT_OCID }}
8261 - name : Build and push apiserver image
8362 env :
84- ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
8563 OCIR_REGISTRY : ${{ steps.login-ocir.outputs.ocir_endpoint }}
8664 OCIR_REPOSITORY : ${{ steps.get-ocir-repository-apiserver.outputs.repo_path }}
8765 run : |
8866 docker build \
8967 -f clomonitor-apiserver/Dockerfile \
90- -t $ECR_REGISTRY/apiserver:$GITHUB_SHA \
9168 -t $OCIR_REPOSITORY:$GITHUB_SHA \
9269 .
93- docker push $ECR_REGISTRY/apiserver:$GITHUB_SHA
9470 docker push $OCIR_REPOSITORY:$GITHUB_SHA
9571
9672 build-archiver-image :
9975 steps :
10076 - name : Checkout code
10177 uses : actions/checkout@v5
102- - name : Configure AWS credentials
103- uses : aws-actions/configure-aws-credentials@v5
104- with :
105- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
106- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
107- aws-region : us-east-2
108- - name : Login to AWS ECR
109- id : login-ecr
110- uses : aws-actions/amazon-ecr-login@v2
11178 - name : Login to OCI Registry
11279 id : login-ocir
11380 uses :
oracle-actions/[email protected] @@ -121,16 +88,13 @@ jobs:
12188 compartment : ${{ secrets.OCI_COMPARTMENT_OCID }}
12289 - name : Build and push image
12390 env :
124- ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
12591 OCIR_REGISTRY : ${{ steps.login-ocir.outputs.ocir_endpoint }}
12692 OCIR_REPOSITORY : ${{ steps.get-ocir-repository-archiver.outputs.repo_path }}
12793 run : |
12894 docker build \
12995 -f clomonitor-archiver/Dockerfile \
130- -t $ECR_REGISTRY/archiver:$GITHUB_SHA \
13196 -t $OCIR_REPOSITORY:$GITHUB_SHA \
13297 .
133- docker push $ECR_REGISTRY/archiver:$GITHUB_SHA
13498 docker push $OCIR_REPOSITORY:$GITHUB_SHA
13599
136100 build-linter-image :
@@ -175,15 +139,6 @@ jobs:
175139 steps :
176140 - name : Checkout code
177141 uses : actions/checkout@v5
178- - name : Configure AWS credentials
179- uses : aws-actions/configure-aws-credentials@v5
180- with :
181- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
182- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
183- aws-region : us-east-2
184- - name : Login to AWS ECR
185- id : login-ecr
186- uses : aws-actions/amazon-ecr-login@v2
187142 - name : Login to OCI Registry
188143 id : login-ocir
189144 uses :
oracle-actions/[email protected] @@ -197,16 +152,13 @@ jobs:
197152 compartment : ${{ secrets.OCI_COMPARTMENT_OCID }}
198153 - name : Build and push image
199154 env :
200- ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
201155 OCIR_REGISTRY : ${{ steps.login-ocir.outputs.ocir_endpoint }}
202156 OCIR_REPOSITORY : ${{ steps.get-ocir-repository-notifier.outputs.repo_path }}
203157 run : |
204158 docker build \
205159 -f clomonitor-notifier/Dockerfile \
206- -t $ECR_REGISTRY/notifier:$GITHUB_SHA \
207160 -t $OCIR_REPOSITORY:$GITHUB_SHA \
208161 .
209- docker push $ECR_REGISTRY/notifier:$GITHUB_SHA
210162 docker push $OCIR_REPOSITORY:$GITHUB_SHA
211163
212164 build-registrar-image :
@@ -215,15 +167,6 @@ jobs:
215167 steps :
216168 - name : Checkout code
217169 uses : actions/checkout@v5
218- - name : Configure AWS credentials
219- uses : aws-actions/configure-aws-credentials@v5
220- with :
221- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
222- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
223- aws-region : us-east-2
224- - name : Login to AWS ECR
225- id : login-ecr
226- uses : aws-actions/amazon-ecr-login@v2
227170 - name : Login to OCI Registry
228171 id : login-ocir
229172 uses :
oracle-actions/[email protected] @@ -237,16 +180,13 @@ jobs:
237180 compartment : ${{ secrets.OCI_COMPARTMENT_OCID }}
238181 - name : Build and push image
239182 env :
240- ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
241183 OCIR_REGISTRY : ${{ steps.login-ocir.outputs.ocir_endpoint }}
242184 OCIR_REPOSITORY : ${{ steps.get-ocir-repository-registrar.outputs.repo_path }}
243185 run : |
244186 docker build \
245187 -f clomonitor-registrar/Dockerfile \
246- -t $ECR_REGISTRY/registrar:$GITHUB_SHA \
247188 -t $OCIR_REPOSITORY:$GITHUB_SHA \
248189 .
249- docker push $ECR_REGISTRY/registrar:$GITHUB_SHA
250190 docker push $OCIR_REPOSITORY:$GITHUB_SHA
251191
252192 build-tracker-image :
@@ -255,15 +195,6 @@ jobs:
255195 steps :
256196 - name : Checkout code
257197 uses : actions/checkout@v5
258- - name : Configure AWS credentials
259- uses : aws-actions/configure-aws-credentials@v5
260- with :
261- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
262- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
263- aws-region : us-east-2
264- - name : Login to AWS ECR
265- id : login-ecr
266- uses : aws-actions/amazon-ecr-login@v2
267198 - name : Login to OCI Registry
268199 id : login-ocir
269200 uses :
oracle-actions/[email protected] @@ -277,14 +208,11 @@ jobs:
277208 compartment : ${{ secrets.OCI_COMPARTMENT_OCID }}
278209 - name : Build and push image
279210 env :
280- ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
281211 OCIR_REGISTRY : ${{ steps.login-ocir.outputs.ocir_endpoint }}
282212 OCIR_REPOSITORY : ${{ steps.get-ocir-repository-tracker.outputs.repo_path }}
283213 run : |
284214 docker build \
285215 -f clomonitor-tracker/Dockerfile \
286- -t $ECR_REGISTRY/tracker:$GITHUB_SHA \
287216 -t $OCIR_REPOSITORY:$GITHUB_SHA \
288217 .
289- docker push $ECR_REGISTRY/tracker:$GITHUB_SHA
290218 docker push $OCIR_REPOSITORY:$GITHUB_SHA
0 commit comments