Skip to content

Commit

Permalink
Merge pull request #2 from Dorianteffo/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Dorianteffo authored Feb 6, 2024
2 parents 5daa53f + 2dd4acc commit 25d994b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
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.

0 comments on commit 25d994b

Please sign in to comment.