feat: migrate CI to v2 strange update of yml
All checks were successful
deploy / deploy (push) Successful in 1m48s

This commit is contained in:
Stepan Vladovskii 2024-01-23 23:31:49 -03:00
parent 0923070111
commit ac31a96a89

View File

@ -1,5 +1,6 @@
name: "deploy" name: 'deploy'
on: [push] on:
push:
jobs: jobs:
deploy: deploy:
@ -14,9 +15,14 @@ jobs:
id: repo_name id: repo_name
run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})" 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 - name: Push to dokku
uses: dokku/github-action@master uses: dokku/github-action@master
with: with:
branch: "main" branch: 'main'
git_remote_url: "ssh://dokku@v2.discours.io:22/core" git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
git_push_flags: '--force'