Compare commits

..

10 Commits

Author SHA1 Message Date
lars 3a5b246220 Merge pull request 'ActRunner' (#8) from ActRunner into main
Reviewed-on: #8
2023-10-05 00:59:46 +00:00
lars 00e89bdc64 Update .gitea/workflows/UndeployPR.yaml
Undeploy PR / Deploy PR (pull_request) Failing after 52s Details
2023-10-05 00:59:08 +00:00
lars cc61dba1a8 Update .gitea/workflows/DeployPR.yaml 2023-10-05 00:58:47 +00:00
lars ffed04c846 Delete .drone.yml 2023-10-05 00:56:03 +00:00
lars fd6520128e Merge branch 'ActRunner' of http://localhost:3000/larsito/DeployTests into ActRunner
continuous-integration/drone/pr Build is passing Details
2023-10-04 15:36:22 -05:00
lars 90dbbc1239 Try multiline run block 2023-10-04 15:35:58 -05:00
larsito 3c163b391c Merge branch 'main' into ActRunner 2023-10-04 20:33:50 +00:00
lars b380440f5a Fix steps syntax in workflow 2023-10-04 15:33:02 -05:00
larsito 39ee09787c Merge pull request 'Add Gitea workflow' (#1) from ActRunner into main
Reviewed-on: http://localhost:3000/larsito/DeployTests/pulls/1
2023-10-04 20:30:22 +00:00
lars 87e1749d49 Add Gitea workflow 2023-10-04 15:29:08 -05:00
3 changed files with 49 additions and 53 deletions

View File

@ -1,53 +0,0 @@
kind: pipeline
type: docker
name: deploy
steps:
- name: Deploy to Portainer
image: alpine
commands:
- apk update
- apk add envsubst curl python3
- python3 -m ensurepip
- pip3 install requests python-dotenv --quiet
- python3 deploy/portainer/deploy.py
--PORTAINER https://dvportainer.privatedns.org
--PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner
--GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406
--DEPLOY_REPO_URL=${DRONE_REPO_LINK}
--DEPLOY_BRANCH=${DRONE_SOURCE_BRANCH}
--DEPLOY_HOST=dvdemo.privatedns.org
trigger:
event:
- pull_request
action:
- opened
---
kind: pipeline
type: docker
name: undeploy
steps:
- name: Undeploy from Portainer
image: alpine
commands:
- apk update
- apk add envsubst curl python3
- python3 -m ensurepip
- pip3 install requests python-dotenv --quiet
- python3 deploy/portainer/undeploy.py
--PORTAINER https://dvportainer.privatedns.org
--PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner
--GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406
--DEPLOY_REPO_URL=${DRONE_REPO_LINK}
--DEPLOY_BRANCH=${DRONE_COMMIT_BRANCH}
trigger:
event:
- pull_request
action:
- closed

View File

@ -0,0 +1,25 @@
name: Deploy PR
run-name: ${{ gitea.actor }} is deploying a PR
on:
pull_request:
types: [ opened, reopened ]
jobs:
Deploy PR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Install pip packages
run: pip3 install requests python-dotenv --quiet
- name: Run Deploy script
run: >
python3 deploy/portainer/deploy.py
--PORTAINER https://dvportainer.privatedns.org
--PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner
--GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406
--DEPLOY_REPO_URL=${DRONE_REPO_LINK}
--DEPLOY_BRANCH=${DRONE_SOURCE_BRANCH}
--DEPLOY_HOST=dvdemo.privatedns.org

View File

@ -0,0 +1,24 @@
name: Undeploy PR
run-name: ${{ gitea.actor }} is undeploying a PR
on:
pull_request:
types: [ closed ]
jobs:
Deploy PR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Install pip packages
run: pip3 install requests python-dotenv --quiet
- name: Run Undeploy script
run: >
python3 deploy/portainer/undeploy.py
--PORTAINER https://dvportainer.privatedns.org
--PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner
--GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406
--DEPLOY_REPO_URL=${DRONE_REPO_LINK}
--DEPLOY_BRANCH=${DRONE_SOURCE_BRANCH}