Skip to content

Commit f6265ae

Browse files
authored
Stop pushing images to AWS ECR (#197)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
1 parent 20f69c2 commit f6265ae

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

.github/workflows/build-images.yml

Lines changed: 0 additions & 24 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,13 @@ jobs:
4132
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
4233
- name: Build and push ocg-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/ocg/dbmigrator:$GITHUB_SHA \
5140
-t $OCIR_REPOSITORY:$GITHUB_SHA \
5241
.
53-
docker push $ECR_REGISTRY/ocg/dbmigrator:$GITHUB_SHA
5442
docker push $OCIR_REPOSITORY:$GITHUB_SHA
5543
5644
build-ocg-server-image:
@@ -59,15 +47,6 @@ jobs:
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,14 +60,11 @@ jobs:
8160
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
8261
- name: Build and push ocg-server 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-server.outputs.repo_path }}
8765
run: |
8866
docker build \
8967
-f ocg-server/Dockerfile \
90-
-t $ECR_REGISTRY/ocg/server:$GITHUB_SHA \
9168
-t $OCIR_REPOSITORY:$GITHUB_SHA \
9269
.
93-
docker push $ECR_REGISTRY/ocg/server:$GITHUB_SHA
9470
docker push $OCIR_REPOSITORY:$GITHUB_SHA

0 commit comments

Comments
 (0)