diff --git a/.gitea/workflows/UndeployPR.yaml b/.gitea/workflows/UndeployPR.yaml index f17b457..f2ae71a 100644 --- a/.gitea/workflows/UndeployPR.yaml +++ b/.gitea/workflows/UndeployPR.yaml @@ -1,24 +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 - container: - image: python - steps: - - 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} +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} \ No newline at end of file