github: disabled deploy workflow

This commit is contained in:
CPunch 2023-01-14 17:31:46 -06:00
parent abaa4c9639
commit a971e7d065
2 changed files with 27 additions and 31 deletions

View File

@ -1,27 +1,27 @@
name: Run Playbook # name: Run Playbook
on: # on:
push: # push:
tags: # tags:
- "v*.*.*" # - "v*.*.*"
jobs: # jobs:
deploy: # deploy:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Set up Git repository # - name: Set up Git repository
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} # ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
submodules: recursive # submodules: recursive
- name: Run Ansible-Playbook # - name: Run Ansible-Playbook
uses: dawidd6/action-ansible-playbook@v2 # uses: dawidd6/action-ansible-playbook@v2
with: # with:
playbook: run.yml # playbook: run.yml
key: ${{ secrets.SSH_PRIVATE_KEY }} # key: ${{ secrets.SSH_PRIVATE_KEY }}
inventory: | # inventory: |
[hosts] # [hosts]
openpunk-vps ansible_host=96.30.199.68 ansible_user=root ansible_connection=ssh # openpunk-vps ansible_host=96.30.199.68 ansible_user=root ansible_connection=ssh
vault_password: ${{ secrets.VAULT_PASSWORD }} # vault_password: ${{ secrets.VAULT_PASSWORD }}
options: | # options: |
--extra-vars domain=openpunk.com # --extra-vars domain=openpunk.com

View File

@ -1,12 +1,11 @@
# OpenPunk's Ansible playbook # OpenPunk's Ansible playbook
<p align="center">
<a href="https://github.com/CPunch/openpunk-ansible/actions/workflows/deploy.yaml"><img src="https://github.com/CPunch/openpunk-ansible/actions/workflows/deploy.yaml/badge.svg?branch=main" alt="Workflow"></a>
</p>
This is my failsafe (and also my helpful migration tool) for restoring the OpenPunk server. This handles setting everything back up, including: This is my failsafe (and also my helpful migration tool) for restoring the OpenPunk server. This handles setting everything back up, including:
- gitea - gitea
- sadly, no db migration is supported right now. maybe a future todo?
- blog - blog
- cron job for grabbing the `HEAD` of https://github.com/CPunch/openpunk && building the hugo site
- tor mirror - tor mirror
- nginx (for the above mentioned) - nginx (for the above mentioned)
- my shell theme (zsh + powerlevel10k) - 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. 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 ## 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. 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.