name: Docker Build on: push: branches: - main jobs: publish: runs-on: ubuntu-22.04 env: DOCKER_HOST: tcp://localhost:2375 steps: - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 # all history for all branches and tags - name: Deploy run: | eval $(ssh-agent -s) echo "${{ secrets.DEPLOY_KEY }}" | ssh-add - apt update && apt install -y rsync rsync -atv --progress -e 'ssh -o StrictHostKeyChecking=no -p ${{ secrets.DEPLOY_PORT }}' ./website/ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }}