Skip to content

Commit

Permalink
clone repo and run docker in the same workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
glencoden committed Dec 5, 2022
1 parent 95e4dfc commit 9625c01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ jobs:
echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- name: pull wolke repository
- name: pull wolke repository and run docker
run: |
ssh root@${{ secrets.SERVER_ADDRESS }} <<"ENDSSH"
mkdir -p /root/apps/wolke
cd /root/apps/wolke
git pull || git clone -b staging --single-branch git@github.com:glencoden/wolke.git ./
- name: run docker
run: |
pwd
docker-compose down --rmi local
docker image prune -f
docker-compose up -d --build
Expand Down

0 comments on commit 9625c01

Please sign in to comment.