Skip to content

Commit

Permalink
45
Browse files Browse the repository at this point in the history
  • Loading branch information
OlhaDanylevska committed Feb 24, 2024
1 parent 03638f8 commit 5c70ddb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,43 @@ jobs:
run: |
docker push olhadanylevska/video-server:${{ steps.create_tag.outputs.tag }}
- name: Checkout code
uses: actions/checkout@v2

# # Install Docker
# - name: Install Docker
# with:
# host: ${{ secrets.AWS_HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.SSH_PRIVATE_KEY }
# run: |
# sudo apt-get update
# sudo apt-get install -y docker.io
# sudo usermod -aG docker $USER
# sudo systemctl restart docker

- name: Install Docker on remote server
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
sudo usermod -aG docker $USER
sudo systemctl restart docker
- name: Check Docker daemon on remote server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
docker info
- name: Clear images and pull new image
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit 5c70ddb

Please sign in to comment.