DeployTests/.gitea/workflows/DeployPR.yaml

27 lines
922 B
YAML
Raw Normal View History

2023-10-04 20:29:08 +00:00
name: Deploy PR
run-name: ${{ gitea.actor }} is deploying a PR
on:
pull_request:
types: [ opened, reopened ]
jobs:
Deploy PR:
2023-10-05 01:45:11 +00:00
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
2023-10-04 20:29:08 +00:00
steps:
2023-10-05 00:58:47 +00:00
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
2023-10-05 01:09:15 +00:00
with:
2023-10-05 01:13:50 +00:00
python-version: '3.12.0'
2023-10-04 20:33:02 +00:00
- name: Install pip packages
2023-10-05 01:02:21 +00:00
run: pip install requests python-dotenv --quiet
2023-10-04 20:33:02 +00:00
- name: Run Deploy script
2023-10-04 20:35:58 +00:00
run: >
2023-10-05 01:02:21 +00:00
python deploy/portainer/deploy.py
2023-10-05 00:58:47 +00:00
--PORTAINER https://dvportainer.privatedns.org
--PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner
--GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406
2023-10-05 02:04:57 +00:00
--DEPLOY_REPO_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
--DEPLOY_BRANCH=${GITHUB_REF_NAME}
--DEPLOY_HOST=dvdemo.privatedns.org