Skip to content

Commit

Permalink
Merge pull request #597 from hngprojects/Rob-in-son-cd-patch
Browse files Browse the repository at this point in the history
cd: update dev.yml
  • Loading branch information
Lanky-23 authored Aug 13, 2024
2 parents 975e89a + 31a8bd7 commit 6805142
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ on:
branches: [dev]

jobs:
on-success:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install sshpass
run: sudo apt-get install sshpass
# - name: Install sshpass
# run: sudo apt-get install sshpass

- name: Fetch .env file from server
run: |
Expand All @@ -37,12 +36,6 @@ jobs:
run: |
docker save hng_boilerplate_expressjs-backend:latest | gzip > dev-images.tar.gz
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: dev-images
path: dev-images.tar.gz

- name: Copy Docker images to server
uses: appleboy/scp-action@master
with:
Expand All @@ -66,9 +59,3 @@ jobs:
docker load -i ~/images-tar/dev-images.tar.gz
docker compose -f docker-compose.yml down
docker compose -f docker-compose.yml up -d
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo "CI Workflow failed. Dev deployment was not triggered."

0 comments on commit 6805142

Please sign in to comment.