Skip to content

Commit

Permalink
Use the right repo
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Dec 2, 2021
1 parent d7cffad commit ec09666
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ jobs:
SSH_KEY: ${{ secrets.SSH_KEY }}
run: |
cd deployment
./configure.sh "$SSH_KEY" "${{ steps.public_ip.outputs.stdout }}"
./configure.sh "$SSH_KEY" "${{ steps.public_ip.outputs.stdout }}" "{{ github.sha }}"
2 changes: 2 additions & 0 deletions deployment/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e

SSH_KEY="$1"
IP="$2"
GIT_REF="$3"

# Prepare the ansible setup
cat > inventory.yaml << EOF
Expand All @@ -13,6 +14,7 @@ all:
ansible_user: egi
ansible_ssh_private_key_file: key
ansible_ssh_common_args: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
git_ref: $GIT_REF
EOF

echo "$SSH_KEY" > key
Expand Down
6 changes: 3 additions & 3 deletions deployment/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
become: yes
gather_facts: yes
tasks:
- name: Get dashboard repo
- name: Checkout repo at VM
ansible.builtin.git:
repo: 'https://github.com/enolfc/horizon-aggregator.git'
repo: 'https://github.com/EGI-Foundation/fedcloud-dashboard.git'
version: {{ git_ref }}
dest: /horizon-aggregator
version: gunicorn

- name: env file
ansible.builtin.copy:
Expand Down

0 comments on commit ec09666

Please sign in to comment.