theocorp_docker_compose/.gitea/workflows/cup.yaml
Workflow config file is invalid. Please check your config file: yaml: line 17: mapping values are not allowed in this context

31 lines
1.0 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
workflow_dispatch:
push:
paths:
- cup/**
env:
app_folder: cup
jobs:
Explore-Gitea-Actions:
runs-on:
workflow_dispatch: ubuntu-latest
steps:
- name: Execute remote SSH commands using password
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.HOST }}
username: geezo
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /home/geezo/docker_containers && \
if ./restart_container.sh ${{ env.app_folder }}; then
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
else
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
fi