Skip to content

Commit 8694615

Browse files
authored
Stop pushing images to AWS ECR (#821)
Signed-off-by: Cintia Sánchez García <[email protected]>
1 parent f251460 commit 8694615

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

.github/workflows/build-images.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ jobs:
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,12 @@ jobs:
4132
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
4233
- name: Build and push dbmigrator image
4334
env:
44-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
45-
OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }}
4635
OCIR_REPOSITORY: ${{ steps.get-ocir-repository-dbmigrator.outputs.repo_path }}
4736
run: |
4837
docker build \
4938
-f database/migrations/Dockerfile \
50-
-t $ECR_REGISTRY/clotributor-dbmigrator:$GITHUB_SHA \
5139
-t $OCIR_REPOSITORY:$GITHUB_SHA \
5240
.
53-
docker push $ECR_REGISTRY/clotributor-dbmigrator:$GITHUB_SHA
5441
docker push $OCIR_REPOSITORY:$GITHUB_SHA
5542
5643
build-apiserver-image:
@@ -59,15 +46,6 @@ jobs:
5946
steps:
6047
- name: Checkout code
6148
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
7149
- name: Login to OCI Registry
7250
id: login-ocir
7351
uses: oracle-actions/[email protected]
@@ -81,16 +59,12 @@ jobs:
8159
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
8260
- name: Build and push apiserver image
8361
env:
84-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
85-
OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }}
8662
OCIR_REPOSITORY: ${{ steps.get-ocir-repository-apiserver.outputs.repo_path }}
8763
run: |
8864
docker build \
8965
-f clotributor-apiserver/Dockerfile \
90-
-t $ECR_REGISTRY/clotributor-apiserver:$GITHUB_SHA \
9166
-t $OCIR_REPOSITORY:$GITHUB_SHA \
9267
.
93-
docker push $ECR_REGISTRY/clotributor-apiserver:$GITHUB_SHA
9468
docker push $OCIR_REPOSITORY:$GITHUB_SHA
9569
9670
build-registrar-image:
@@ -99,15 +73,6 @@ jobs:
9973
steps:
10074
- name: Checkout code
10175
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
11176
- name: Login to OCI Registry
11277
id: login-ocir
11378
uses: oracle-actions/[email protected]
@@ -121,16 +86,12 @@ jobs:
12186
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
12287
- name: Build and push registrar image
12388
env:
124-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
125-
OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }}
12689
OCIR_REPOSITORY: ${{ steps.get-ocir-repository-registrar.outputs.repo_path }}
12790
run: |
12891
docker build \
12992
-f clotributor-registrar/Dockerfile \
130-
-t $ECR_REGISTRY/clotributor-registrar:$GITHUB_SHA \
13193
-t $OCIR_REPOSITORY:$GITHUB_SHA \
13294
.
133-
docker push $ECR_REGISTRY/clotributor-registrar:$GITHUB_SHA
13495
docker push $OCIR_REPOSITORY:$GITHUB_SHA
13596
13697
build-tracker-image:
@@ -139,15 +100,6 @@ jobs:
139100
steps:
140101
- name: Checkout code
141102
uses: actions/checkout@v5
142-
- name: Configure AWS credentials
143-
uses: aws-actions/configure-aws-credentials@v5
144-
with:
145-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
146-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
147-
aws-region: us-east-2
148-
- name: Login to AWS ECR
149-
id: login-ecr
150-
uses: aws-actions/amazon-ecr-login@v2
151103
- name: Login to OCI Registry
152104
id: login-ocir
153105
uses: oracle-actions/[email protected]
@@ -161,14 +113,10 @@ jobs:
161113
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
162114
- name: Build and push tracker image
163115
env:
164-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
165-
OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }}
166116
OCIR_REPOSITORY: ${{ steps.get-ocir-repository-tracker.outputs.repo_path }}
167117
run: |
168118
docker build \
169119
-f clotributor-tracker/Dockerfile \
170-
-t $ECR_REGISTRY/clotributor-tracker:$GITHUB_SHA \
171120
-t $OCIR_REPOSITORY:$GITHUB_SHA \
172121
.
173-
docker push $ECR_REGISTRY/clotributor-tracker:$GITHUB_SHA
174122
docker push $OCIR_REPOSITORY:$GITHUB_SHA

0 commit comments

Comments
 (0)