Compare commits

...

16 Commits

Author SHA1 Message Date
af00f3729d Use build in compose 2023-10-06 15:37:44 -05:00
2f141ba9c1 Update .gitea/workflows/UndeployPR.yaml
All checks were successful
Deploy PR / Deploy PR (pull_request) Successful in 30s
Undeploy PR / Deploy PR (pull_request) Successful in 31s
2023-10-05 02:09:03 +00:00
3a32158272 Update .gitea/workflows/DeployPR.yaml 2023-10-05 02:08:53 +00:00
612b1e078c Update .gitea/workflows/UndeployPR.yaml
Some checks failed
Deploy PR / Deploy PR (pull_request) Failing after 27s
Undeploy PR / Deploy PR (pull_request) Failing after 30s
2023-10-05 02:05:13 +00:00
5b0e7641b8 Update .gitea/workflows/DeployPR.yaml 2023-10-05 02:04:57 +00:00
fd15ed45ee Update .gitea/workflows/UndeployPR.yaml
Some checks failed
Deploy PR / Deploy PR (pull_request) Failing after 1m5s
Undeploy PR / Deploy PR (pull_request) Failing after 26s
2023-10-05 01:45:20 +00:00
eb0a6d9483 Update .gitea/workflows/DeployPR.yaml 2023-10-05 01:45:11 +00:00
4ead2aa92d Update .gitea/workflows/UndeployPR.yaml
Some checks failed
Deploy PR / Deploy PR (pull_request) Failing after 1m3s
Undeploy PR / Deploy PR (pull_request) Failing after 6s
2023-10-05 01:35:30 +00:00
28f45e37ee Update .gitea/workflows/DeployPR.yaml 2023-10-05 01:35:19 +00:00
280a2d6c92 Update .gitea/workflows/UndeployPR.yaml
Some checks failed
Deploy PR / Deploy PR (pull_request) Failing after 5s
Undeploy PR / Deploy PR (pull_request) Failing after 51s
2023-10-05 01:22:54 +00:00
e8fd475820 Update .gitea/workflows/DeployPR.yaml 2023-10-05 01:22:40 +00:00
58381805e9 Update .gitea/workflows/UndeployPR.yaml
Some checks failed
Deploy PR / Deploy PR (pull_request) Failing after 5s
Undeploy PR / Deploy PR (pull_request) Failing after 6s
2023-10-05 01:14:17 +00:00
ab47ee2e18 Update .gitea/workflows/DeployPR.yaml 2023-10-05 01:13:50 +00:00
1d42c7f95c Update .gitea/workflows/DeployPR.yaml
Some checks failed
Deploy PR / Deploy PR (pull_request) Failing after 5s
2023-10-05 01:09:15 +00:00
398db54e15 Update .gitea/workflows/UndeployPR.yaml
Some checks failed
Deploy PR / Deploy PR (pull_request) Failing after 5s
Undeploy PR / Deploy PR (pull_request) Failing after 5s
2023-10-05 01:02:32 +00:00
c6f62df2c2 Update .gitea/workflows/DeployPR.yaml 2023-10-05 01:02:21 +00:00
4 changed files with 28 additions and 19 deletions

View File

@@ -7,19 +7,21 @@ on:
jobs: jobs:
Deploy PR: Deploy PR:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
with:
python-version: '3.12.0'
- name: Install pip packages - name: Install pip packages
run: pip3 install requests python-dotenv --quiet run: pip install requests python-dotenv --quiet
- name: Run Deploy script - name: Run Deploy script
run: > run: >
python3 deploy/portainer/deploy.py python deploy/portainer/deploy.py
--PORTAINER https://dvportainer.privatedns.org --PORTAINER https://dvportainer.privatedns.org
--PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q= --PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner --PORTAINER_EP=CICD-runner
--GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406 --GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406
--DEPLOY_REPO_URL=${DRONE_REPO_LINK} --DEPLOY_REPO_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
--DEPLOY_BRANCH=${DRONE_SOURCE_BRANCH} --DEPLOY_BRANCH=${GITHUB_HEAD_REF}
--DEPLOY_HOST=dvdemo.privatedns.org --DEPLOY_HOST=dvdemo.privatedns.org

View File

@@ -7,18 +7,21 @@ on:
jobs: jobs:
Deploy PR: Deploy PR:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
with:
python-version: '3.12.0'
- name: Install pip packages - name: Install pip packages
run: pip3 install requests python-dotenv --quiet run: pip install requests python-dotenv --quiet
- name: Run Undeploy script - name: Run Undeploy script
run: > run: >
python3 deploy/portainer/undeploy.py python deploy/portainer/undeploy.py
--PORTAINER https://dvportainer.privatedns.org --PORTAINER https://dvportainer.privatedns.org
--PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q= --PORTAINER_API_KEY=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=
--PORTAINER_EP=CICD-runner --PORTAINER_EP=CICD-runner
--GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406 --GITEA_API_KEY=f449c74ec7f04e54fe1e481eae43492b34cea406
--DEPLOY_REPO_URL=${DRONE_REPO_LINK} --DEPLOY_REPO_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
--DEPLOY_BRANCH=${DRONE_SOURCE_BRANCH} --DEPLOY_BRANCH=${GITHUB_HEAD_REF}

View File

@@ -1,10 +1,12 @@
version: '3.4' version: '3.4'
services: services:
http-echo: http-echo:
image: mendhak/http-https-echo:latest build:
expose: content: ./
- 8080 dockerfile: httpecho.Dockerfile
environment: expose:
- VIRTUAL_PORT=8080 - 8080
environment:
- VIRTUAL_PORT=8080
- VIRTUAL_HOST=${HOST} - VIRTUAL_HOST=${HOST}

2
httpecho.Dockerfile Normal file
View File

@@ -0,0 +1,2 @@
FROM mendhak/http-https-echo:latest
RUN echo "Hello"