Skip to content

Build, Test, and Push Services #15

Build, Test, and Push Services

Build, Test, and Push Services #15

Workflow file for this run

name: Build and Deploy Microservices
on:
push:
branches: ["deploy"]
jobs:
deploy:

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

View workflow run for this annotation

GitHub Actions / Build and Deploy Microservices

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 8, Col: 5): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: build-test
steps:
- name: Checkout code and build on server
uses: appleboy/ssh-action@master
with:
host: 37.139.41.110
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /opt/backend-deploy
git init
git remote add origin ${{ github.server_url }}/${{ github.repository }}
git fetch origin ${{ github.ref }}
git reset --hard origin/${{ github.ref }}
sudo docker compose build --no-cache
sudo docker compose up -d --remove-orphans