Compare commits
16 Commits
3a5b246220
...
TestBranch
Author | SHA1 | Date | |
---|---|---|---|
af00f3729d | |||
2f141ba9c1 | |||
3a32158272 | |||
612b1e078c | |||
5b0e7641b8 | |||
fd15ed45ee | |||
eb0a6d9483 | |||
4ead2aa92d | |||
28f45e37ee | |||
280a2d6c92 | |||
e8fd475820 | |||
58381805e9 | |||
ab47ee2e18 | |||
1d42c7f95c | |||
398db54e15 | |||
c6f62df2c2 |
@@ -7,19 +7,21 @@ on:
|
||||
jobs:
|
||||
Deploy PR:
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12.0'
|
||||
- name: Install pip packages
|
||||
run: pip3 install requests python-dotenv --quiet
|
||||
run: pip install requests python-dotenv --quiet
|
||||
- name: Run Deploy script
|
||||
run: >
|
||||
python3 deploy/portainer/deploy.py
|
||||
python 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
|
||||
|
||||
--DEPLOY_REPO_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
||||
--DEPLOY_BRANCH=${GITHUB_HEAD_REF}
|
||||
--DEPLOY_HOST=dvdemo.privatedns.org
|
@@ -7,18 +7,21 @@ on:
|
||||
jobs:
|
||||
Deploy PR:
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12.0'
|
||||
- name: Install pip packages
|
||||
run: pip3 install requests python-dotenv --quiet
|
||||
run: pip install requests python-dotenv --quiet
|
||||
- name: Run Undeploy script
|
||||
run: >
|
||||
python3 deploy/portainer/undeploy.py
|
||||
python 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}
|
||||
--DEPLOY_REPO_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
||||
--DEPLOY_BRANCH=${GITHUB_HEAD_REF}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
version: '3.4'
|
||||
|
||||
services:
|
||||
http-echo:
|
||||
image: mendhak/http-https-echo:latest
|
||||
expose:
|
||||
- 8080
|
||||
environment:
|
||||
- VIRTUAL_PORT=8080
|
||||
version: '3.4'
|
||||
|
||||
services:
|
||||
http-echo:
|
||||
build:
|
||||
content: ./
|
||||
dockerfile: httpecho.Dockerfile
|
||||
expose:
|
||||
- 8080
|
||||
environment:
|
||||
- VIRTUAL_PORT=8080
|
||||
- VIRTUAL_HOST=${HOST}
|
2
httpecho.Dockerfile
Normal file
2
httpecho.Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM mendhak/http-https-echo:latest
|
||||
RUN echo "Hello"
|
Reference in New Issue
Block a user