Skip to content

Merge pull request #128 from SmoFlaDru/dev-benno #1

Merge pull request #128 from SmoFlaDru/dev-benno

Merge pull request #128 from SmoFlaDru/dev-benno #1

Workflow file for this run

name: Deploy to server via docker image
on:
push:
branches: [ "master", "workflow_dispatch" ]
workflow_dispatch:
jobs:
deploy:

Check failure on line 8 in .github/workflows/deploy-docker.yml

View workflow run for this annotation

GitHub Actions / Deploy to server via docker image

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-docker.yml (Line: 8, Col: 3): The workflow must contain at least one job with no dependencies.
name: Deploy to Server
needs: build-push-deploy-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: upload infrastructure files
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_SECONDARY_HOST }}
username: ${{ secrets.SSH_SECONDARY_USERNAME }}
password: ${{ secrets.SSH_SECONDARY_PASSWORD }}
port: ${{ secrets.SSH_SECONDARY_PORT }}
source: infrastructure/*
target: .
- name: execute remote ssh commands
uses: appleboy/ssh-action@master
env:
SECRET: ${{ secrets.ENV_FILE }}
COMMIT_SHA: ${{ github.sha }}
with:
host: ${{ secrets.SSH_SECONDARY_HOST }}
username: ${{ secrets.SSH_SECONDARY_USERNAME }}
password: ${{ secrets.SSH_SECONDARY_PASSWORD }}
port: ${{ secrets.SSH_SECONDARY_PORT }}
envs: SECRET,COMMIT_SHA
script: |
cd Spybot2
echo "$SECRET" > .env
docker-compose -f docker-compose-deploy.yml up