Skip to content

Commit

Permalink
some
Browse files Browse the repository at this point in the history
  • Loading branch information
OlhaDanylevska committed Feb 20, 2024
1 parent 8eee45b commit 3955200
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
name: "Depoloy on VM"

name: Deploy to VM

on:
push:
branches:
- main


jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Deploy to VM
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
sudo apt-get update
sudo apt-get install -y docker.io
- name: Create tag for image
id: create_tag
run: |
Expand Down Expand Up @@ -69,6 +57,7 @@ jobs:
docker rm $CONTAINER_ID
fi
- name: Run container on VM server
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit 3955200

Please sign in to comment.