Skip to content

Commit

Permalink
deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Jul 27, 2024
1 parent 8471904 commit cb56a6f
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy new artbot version

on:
workflow_dispatch:

permissions:
contents: write
pull-requests: read

jobs:
build-n-deploy:
name: Artbot new release
runs-on: ubuntu-latest
steps:
- name: "✔️ Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
with:
# Required, playbook filepath
playbook: ansible/artbot_update.yml
# Optional, directory where playbooks live
directory: ./
# Optional, SSH private key
key: ${{secrets.SSH_PRIVATE_KEY}}
# Optional, SSH known hosts file content
known_hosts: |
${{secrets.SSH_ARTBOT_IP}} ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKhA3ORj5KS0aMO9o5hsehVhaCN7akSHg91mjodMNag+
# # Optional, encrypted vault password
# vault_password: ${{secrets.VAULT_PASSWORD}}
# Optional, galaxy requirements filepath
# requirements: galaxy-requirements.yml
# Optional, additional flags to pass to ansible-playbook
options: |
--inventory ansible/inventory.yml
-t update
8 changes: 8 additions & 0 deletions ansible/artbot_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

- hosts: artbot_server
gather_facts: false

roles:
- name: haidra.deployments.artbot
tags: artbot
8 changes: 8 additions & 0 deletions ansible/inventory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

all:
hosts:
artbot_server:
ansible_host: 184.174.32.118
ansible_become: false
ansible_user: artbot
4 changes: 4 additions & 0 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

collections:
- git+https://github.com/Haidra-Org/deployments

0 comments on commit cb56a6f

Please sign in to comment.