Skip to content

Commit

Permalink
2024-06-12-16-25-18 - stop-cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephKevinMachado committed Jun 12, 2024
1 parent 3d1d8fb commit 092531a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: CD
on:
push:
branches:
- main
jobs:
deploy-to-ec2:
runs-on: ubuntu-latest
steps:
- name: Deploy to server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
SOURCE: "./"
TARGET: "/home/ubuntu/data_engineering_project_template"
# Note: Uncomment to start CD
# name: CD
# on:
# push:
# branches:
# - main
# jobs:
# deploy-to-ec2:
# runs-on: ubuntu-latest
# steps:
# - name: Deploy to server
# uses: easingthemes/ssh-deploy@main
# env:
# SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
# REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
# REMOTE_USER: ${{ secrets.REMOTE_USER }}
# SOURCE: "./"
# TARGET: "/home/ubuntu/data_engineering_project_template"
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: CI
on: [pull_request]
jobs:
run-ci-tests:
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
# Note: Uncomment to start CI
# name: CI
# on: [pull_request]
# jobs:
# run-ci-tests:
# 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

0 comments on commit 092531a

Please sign in to comment.