Skip to content

Commit

Permalink
ghactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorianteffo committed Feb 6, 2024
1 parent 8ca9f4e commit 55e0411
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
runs-on: ubuntu-latest
needs: [ci_job, deploy_terraform]
steps:
- name: checkout repo
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -68,6 +70,7 @@ jobs:
REPOSITORY: ecr-repo-lambda
IMAGE_TAG: ${{ github.sha }}
run: |
cd extract_api_data
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.7"
services:
lambda_job:
build:
context: .
context: ./extract_api_data
container_name: lambda_job

terraform:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile → extract_api_data/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ COPY requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt

COPY ./extract_api_data .
COPY . .

CMD [ "api_data.lambda_handler" ]
File renamed without changes.

0 comments on commit 55e0411

Please sign in to comment.