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

edit ci-cd #8

Merged
merged 1 commit into from
Mar 11, 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
44 changes: 4 additions & 40 deletions .github/workflows/ci_cd.yml → .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,12 @@
name: ci_cd
name: CD

on:
pull_request:
push:
branches:
- master

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- master


jobs:
ci_job:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2

- name: Spin up containers
run: make up

- name: Run CI test
run: make ci

- name: Stop container
run: make down


# 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: apply terraform
# run: make infra-apply


push_docker_image:
runs-on: ubuntu-latest
needs: [ci_job]
Expand Down Expand Up @@ -71,6 +37,4 @@ jobs:
aws lambda update-function-code \
--function-name test-lambda \
--image-uri $REGISTRY/$REPOSITORY:$IMAGE_TAG




42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on: [pull_request]

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}


jobs:
ci_job:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2

- name: Spin up containers
run: make up

- name: Run CI test
run: make ci

- name: Stop container
run: make down


# 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: apply terraform
# run: make infra-apply




Loading