From a971e7d0658bac33836ac0174361244131766a3a Mon Sep 17 00:00:00 2001 From: CPunch Date: Sat, 14 Jan 2023 17:31:46 -0600 Subject: [PATCH] github: disabled deploy workflow --- .github/workflows/deploy.yaml | 50 +++++++++++++++++------------------ README.md | 8 ++---- 2 files changed, 27 insertions(+), 31 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2ab3905..57d18d1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,27 +1,27 @@ -name: Run Playbook +# name: Run Playbook -on: - push: - tags: - - "v*.*.*" +# on: +# push: +# tags: +# - "v*.*.*" -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Set up Git repository - uses: actions/checkout@v3 - with: - ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - submodules: recursive - - name: Run Ansible-Playbook - uses: dawidd6/action-ansible-playbook@v2 - with: - playbook: run.yml - key: ${{ secrets.SSH_PRIVATE_KEY }} - inventory: | - [hosts] - openpunk-vps ansible_host=96.30.199.68 ansible_user=root ansible_connection=ssh - vault_password: ${{ secrets.VAULT_PASSWORD }} - options: | - --extra-vars domain=openpunk.com +# jobs: +# deploy: +# runs-on: ubuntu-latest +# steps: +# - name: Set up Git repository +# uses: actions/checkout@v3 +# with: +# ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} +# submodules: recursive +# - name: Run Ansible-Playbook +# uses: dawidd6/action-ansible-playbook@v2 +# with: +# playbook: run.yml +# key: ${{ secrets.SSH_PRIVATE_KEY }} +# inventory: | +# [hosts] +# openpunk-vps ansible_host=96.30.199.68 ansible_user=root ansible_connection=ssh +# vault_password: ${{ secrets.VAULT_PASSWORD }} +# options: | +# --extra-vars domain=openpunk.com diff --git a/README.md b/README.md index efbb8f7..046bffb 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@ # OpenPunk's Ansible playbook -

- Workflow -

This is my failsafe (and also my helpful migration tool) for restoring the OpenPunk server. This handles setting everything back up, including: - gitea + - sadly, no db migration is supported right now. maybe a future todo? - blog + - cron job for grabbing the `HEAD` of https://github.com/CPunch/openpunk && building the hugo site - tor mirror - nginx (for the above mentioned) - my shell theme (zsh + powerlevel10k) @@ -14,9 +13,6 @@ This is my failsafe (and also my helpful migration tool) for restoring the OpenP This playbook assumes the target VPS is running the latest debian stable release. -## Automatic deployment -On new release tags the playbook is automatically ran on the production openpunk vps. For more info checkout the `.github/workflows/deploy.yaml` workflow - ## Notes to my future self The deadswitch has the deadtrigger setup every run, so you have a 14-day timer to add a one-liner to your crontab to keep that deadtrigger set.