Skip to content
Merged
Show file tree
Hide file tree
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
51 changes: 51 additions & 0 deletions .github/workflows/build-ecr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Publish overpass-api to ECR

on:
push:
branches: [ aws-deploy-test ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Generate Dockerfiles
run: python update.py

- name: Prepare build context
run: |
cp -r etc bin 0.7.62.7/
cp docker-entrypoint.sh requirements.txt docker-healthcheck.sh 0.7.62.7/

# ✅ Authenticate with AWS
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

# ✅ Log in to Amazon ECR
- name: Log in to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build and push Overpass 0.7.62.7
uses: docker/build-push-action@v6
with:
context: ./0.7.62.7
file: ./0.7.62.7/Dockerfile
push: true
tags: |
${{ steps.login-ecr.outputs.registry }}/overpass-api:0.7.62.7
${{ steps.login-ecr.outputs.registry }}/overpass-api:latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish overpass-api
name: Build and Publish overpass-api to GHCR

on:
push:
Expand Down Expand Up @@ -43,4 +43,4 @@ jobs:
push: true
tags: |
ghcr.io/dubsof/overpass-api:0.7.62.7
ghcr.io/dubsof/overpass-api:latest
ghcr.io/dubsof/overpass-api:latest
Loading