Skip to content

Commit 3339c8e

Browse files
committed
Stop pushing images to AWS ECR
Signed-off-by: Cintia Sánchez García <[email protected]>
1 parent 853161b commit 3339c8e

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

.github/workflows/build-images.yml

Lines changed: 0 additions & 39 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 gitjobs-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/gitjobs/dbmigrator:$GITHUB_SHA \
5139
-t $OCIR_REPOSITORY:$GITHUB_SHA \
5240
.
53-
docker push $ECR_REGISTRY/gitjobs/dbmigrator:$GITHUB_SHA
5441
docker push $OCIR_REPOSITORY:$GITHUB_SHA
5542
5643
build-server-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 gitjobs-server 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-server.outputs.repo_path }}
8763
run: |
8864
docker build \
8965
-f gitjobs-server/Dockerfile \
90-
-t $ECR_REGISTRY/gitjobs/server:$GITHUB_SHA \
9166
-t $OCIR_REPOSITORY:$GITHUB_SHA \
9267
.
93-
docker push $ECR_REGISTRY/gitjobs/server:$GITHUB_SHA
9468
docker push $OCIR_REPOSITORY:$GITHUB_SHA
9569
9670
build-syncer-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,14 +86,10 @@ jobs:
12186
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
12287
- name: Build and push gitjobs-syncer 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-syncer.outputs.repo_path }}
12790
run: |
12891
docker build \
12992
-f gitjobs-syncer/Dockerfile \
130-
-t $ECR_REGISTRY/gitjobs/syncer:$GITHUB_SHA \
13193
-t $OCIR_REPOSITORY:$GITHUB_SHA \
13294
.
133-
docker push $ECR_REGISTRY/gitjobs/syncer:$GITHUB_SHA
13495
docker push $OCIR_REPOSITORY:$GITHUB_SHA

0 commit comments

Comments
 (0)