Files
phoenix/.gitea/workflows/commentDeploy.yml
Tobias Klemp b048a9d4a6
Some checks failed
CI / build-and-test (push) Failing after 3m8s
key in inputs
2026-01-02 01:09:03 +01:00

33 lines
1005 B
YAML

name: ChatOps Deploy
on: issue_comment
jobs:
testing:
if: |
gitea.event.issue.pull_request &&
startsWith(gitea.event.comment.body, '/deploy')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get branch name
id: branch_name
uses: ./.gitea/actions/getTagSafeRef
- name: Build and push image
id: docker_build
uses: ./.gitea/actions/build
with:
tag: ${{ steps.branch_name.outputs.branch_name }}
REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
REGISTRY_USER: ${{ gitea.actor }}
- name: Deploy application
uses: ./.gitea/actions/deploy
with:
project_name: ${{ steps.branch_name.outputs.branch_name }}
url: '${{ steps.branch_name.outputs.branch_name }}.phoenix.klemp.local'
image_url: ${{ steps.docker_build.outputs.image_url }}
deployment_key: ${{ secrets.SSH_DEPLOYMENT_KEY }}