feat: allow to update gui with github actions
parent
36e9701735
commit
b7846862cf
|
@ -1,4 +1,4 @@
|
|||
name: Deploy new version
|
||||
name: Deploy new fediseer API version
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
@ -9,7 +9,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
build-n-deploy:
|
||||
name: Fediseer new release
|
||||
name: Fediseer new API release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "✔️ Checkout"
|
||||
|
@ -20,7 +20,7 @@ jobs:
|
|||
uses: dawidd6/action-ansible-playbook@v2
|
||||
with:
|
||||
# Required, playbook filepath
|
||||
playbook: ansible/deploy.yml
|
||||
playbook: ansible/fediseer_api_deploy.yml
|
||||
# Optional, directory where playbooks live
|
||||
directory: ./
|
||||
# Optional, SSH private key
|
|
@ -0,0 +1,38 @@
|
|||
name: Deploy new fediseer GUI version
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
build-n-deploy:
|
||||
name: Fediseer new GUI 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/fediseer_gui_deploy.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_FEDISEER_IP}} ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDuk6apo8+3YzU6WQ7WYu4F/9Pf1Nc1w4QXTqLsIlTmd
|
||||
# # 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
|
||||
-e docker_compose_dir=${{secrets.DOCKER_COMPOSE_DIR}}
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
- hosts: fediseer
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: start docker-compose
|
||||
docker_compose:
|
||||
project_src: "{{docker_compose_dir}}"
|
||||
state: present
|
||||
pull: yes
|
||||
remove_orphans: yes
|
||||
become: true
|
||||
tags:
|
||||
- docker
|
||||
- compose
|
Loading…
Reference in New Issue