core/.gitea/workflows/main.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 25: mapping key "name" already defined at line 1 line 26: mapping key "on" already defined at line 2 line 31: mapping key "jobs" already defined at line 7
2024-01-24 20:42:51 -03:00

56 lines
1.3 KiB
YAML

name: 'Deploy to core'
on:
push:
branches:
- feature/core
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to core
uses: dokku/github-action@master
with:
ssh-private-key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
ssh-host: staging.discours.io
ssh-user: dokku
app-name: core
git-remote-url: ssh://dokku@staging.discours.io:22/core
name: 'Deploy to core'
on:
push:
branches:
- feature/core
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get Repo Name
id: repo_name
run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})"
- name: Get Branch Name
id: branch_name
run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})"
- name: Push to dokku
uses: dokku/github-action@master
with:
branch: 'main'
git_remote_url: 'ssh://dokku@staging.discours.io:22/core'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
git_push_flags: '--force'