Skip to content

Update/Create Container on VPS #25

Update/Create Container on VPS

Update/Create Container on VPS #25

name: Update/Create Container on VPS
on:
workflow_run:
workflows: [ "Publish Docker image" ]
types:
- completed
jobs:
deploy:

Check failure on line 10 in .github/workflows/update-docker-image-remote.yml

View workflow run for this annotation

GitHub Actions / Update/Create Container on VPS

Invalid workflow file

The workflow is not valid. .github/workflows/update-docker-image-remote.yml (Line: 10, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: publish-docker-image.push_to_registry
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Configure SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y sshpass
- name: Deploy to VPS
run: |
sshpass -p ${{ secrets.SSH_PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} 'docker-compose pull && docker-compose up -d'