Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #2

Merged
merged 3 commits into from
Feb 6, 2024
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
31 changes: 15 additions & 16 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: ci_cd

on:
push:
branches:
- master

pull_request:
branches:
- master
Expand Down Expand Up @@ -32,23 +28,23 @@ jobs:
run: make down


deploy_terraform:
runs-on: ubuntu-latest
needs: [ci_job]
steps:
- name: checkout repo
uses: actions/checkout@v2
# deploy_terraform:
# runs-on: ubuntu-latest
# needs: [ci_job]
# steps:
# - name: checkout repo
# uses: actions/checkout@v2

- name: init terraform
run: make infra-init
# - name: init terraform
# run: make infra-init

- name: apply terraform
run: make infra-apply
# - name: apply terraform
# run: make infra-apply


deploy_docker_lambda:
push_docker_image:
runs-on: ubuntu-latest
needs: [ci_job, deploy_terraform]
needs: [ci_job]
steps:
- name: checkout repo
uses: actions/checkout@v2
Expand All @@ -73,6 +69,9 @@ jobs:
cd extract_api_data
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
aws lambda update-function-code \
--function-name test-lambda \
--image-uri $REGISTRY/$REPOSITORY:$IMAGE_TAG



2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Architecture
![archi.png](architecture.png)
Binary file added architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading