Skip to content

commented out old code #11

commented out old code

commented out old code #11

Workflow file for this run

name: Production
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Login to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Build docker image
run: docker build -t vtmunc/vtmunc .
- name: Publish images to docker hub
run: docker push vtmunc/vtmunc:latest
deploy:
needs: build
runs-on: ubuntu-latest
steps:
# - name: Connect to SSH instance, pull image and deploy container
# run: |
# ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no [email protected] << 'EOF'
# docker pull vtmunc/vtmunc:latest
# docker rm -f vtmunc || true
# docker run -d -p 8080:8080 --name vtmunc vtmunc/vtmunc
# EOF
- name: Connect to ssh instance, pull image and deploy container
run: appleboy/[email protected]
with:

Check failure on line 34 in .github/workflows/vtmunc-runner.yml

View workflow run for this annotation

GitHub Actions / Production

Invalid workflow file

The workflow is not valid. .github/workflows/vtmunc-runner.yml (Line: 34, Col: 9): Unexpected value 'with'
host: vtmunc.org
username: webapp
key: ${{ secrets.SSH_PRIVATE_KEY }}
debug: true
script: |
docker pull vtmunc/vtmunc:latest
docker rm -f vtmunc || true
docker run -d -p 8080:8080 --name vtmunc vtmunc/vtmunc