Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v5
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Login to AWS ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Login to OCI Registry
id: login-ocir
uses: oracle-actions/[email protected]
Expand All @@ -41,16 +32,13 @@ jobs:
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
- name: Build and push ocg-dbmigrator image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }}
OCIR_REPOSITORY: ${{ steps.get-ocir-repository-dbmigrator.outputs.repo_path }}
run: |
docker build \
-f database/migrations/Dockerfile \
-t $ECR_REGISTRY/ocg/dbmigrator:$GITHUB_SHA \
-t $OCIR_REPOSITORY:$GITHUB_SHA \
.
docker push $ECR_REGISTRY/ocg/dbmigrator:$GITHUB_SHA
docker push $OCIR_REPOSITORY:$GITHUB_SHA

build-ocg-server-image:
Expand All @@ -59,15 +47,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v5
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Login to AWS ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Login to OCI Registry
id: login-ocir
uses: oracle-actions/[email protected]
Expand All @@ -81,14 +60,11 @@ jobs:
compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}
- name: Build and push ocg-server image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
OCIR_REGISTRY: ${{ steps.login-ocir.outputs.ocir_endpoint }}
OCIR_REPOSITORY: ${{ steps.get-ocir-repository-server.outputs.repo_path }}
run: |
docker build \
-f ocg-server/Dockerfile \
-t $ECR_REGISTRY/ocg/server:$GITHUB_SHA \
-t $OCIR_REPOSITORY:$GITHUB_SHA \
.
docker push $ECR_REGISTRY/ocg/server:$GITHUB_SHA
docker push $OCIR_REPOSITORY:$GITHUB_SHA