Skip to content

Commit

Permalink
Extend deployment workflow to include federated-api deployment (#10)
Browse files Browse the repository at this point in the history
Deploy federated-api on deployment workflow
  • Loading branch information
Ndpnt authored Mar 28, 2024
1 parent f63b8e5 commit 51eb735
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Get target server hostname
id: get_hostname
uses: mikefarah/yq@master
with:
cmd: yq '.all.hosts.* | key' deployment/inventory.yml

- name: Get target server fingerprint
id: get_fingerprint
uses: mikefarah/yq@master
with:
cmd: yq '.all.hosts.*.ed25519_fingerprint' deployment/inventory.yml

- name: Set up SSH
uses: shimataro/ssh-key-action@v2
with:
Expand All @@ -32,11 +35,17 @@ jobs:
- run: echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > deployment/vault.key
- run: pip install --upgrade setuptools
- run: pip install 'ansible ~= 2.9'

- name: Install dependencies
working-directory: ./deployment
run: ansible-galaxy collection install -p ./ -r requirements.yml --force
- name: Deploy

- name: Deploy engine
working-directory: ./deployment
run: ansible-playbook ./ansible_collections/opentermsarchive/deployment/playbooks/engine/all.yml

- name: Deploy federated-api
working-directory: ./deployment
run: ansible-playbook ./ansible_collections/opentermsarchive/deployment/playbooks/federated_api/all.yml


0 comments on commit 51eb735

Please sign in to comment.