Skip to content

Commit

Permalink
x18
Browse files Browse the repository at this point in the history
  • Loading branch information
ljocha committed Apr 8, 2024
1 parent 8b6d069 commit f82a1a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
27 changes: 22 additions & 5 deletions .github/actions/deploy-common/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,26 @@ inputs:
runs:
using: 'composite'
steps:
- name: Test Ansible
- name: Create SSH key
shell: bash
run: ansible-playbook --help
# -
# run: echo ${{ inputs.destination }}
# shell: bash
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
ssh ${{ inputs.destination }} hostname -f
- name: Pick secret.yml
shell: bash
run: cp group_var/secret-${{ inputs.destination }}.yml group_var/secret.yml

- name: Install requirements
shell: bash
run: ansible-galaxy install -p roles -r requirements.yml

- name: Vault password
shell: bash
run: echo "${{ secrets.VAULT_PASSWORD }}" >.vault-password.txt

- name: Run playbook
shell: bash
run ansible-playbook
2 changes: 1 addition & 1 deletion .github/workflows/deploy-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- name: Call common
uses: ./.github/actions/deploy-common
with:
destination: 'usegalaxy-test.blablabla'
destination: 'usegalaxy-test.cerit-sc.cz'


File renamed without changes.

0 comments on commit f82a1a8

Please sign in to comment.