Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: EpiGraphHub

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
main:

runs-on: ubuntu-latest
timeout-minutes: 35
defaults:
run:
shell: bash -l {0}
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "*"
environment-file: conda/base.yaml
channels: conda-forge,r,nodefaults
activate-environment: epigraphhub
use-mamba: true
miniforge-variant: Mambaforge

- name: Deploy
env:
ANSIBLE_VAULT_KEY: ${{ secrets.ANSIBLE_VAULT_KEY }}
run: |
echo "${ANSIBLE_VAULT_KEY}" > .vault_pass.txt
make deploy
11 changes: 0 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
FLOWER_PORT: 28888
FLOWER_PASSWORD: flowerpass
Expand Down Expand Up @@ -80,11 +77,3 @@ jobs:
- name: test cron scripts
run: |
make docker-run-cron SERVICE=epigraphhub-superset

- name: Deploy
if: ${{ github.event_name == 'push' }}
env:
ANSIBLE_VAULT_KEY: ${{ secrets.ANSIBLE_VAULT_KEY }}
run: |
echo "${ANSIBLE_VAULT_KEY}" > .vault_pass.txt
make deploy
3 changes: 3 additions & 0 deletions ansible/playbooks/local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@
dest: "{{ ssh_private_file }}"
mode: '600'
tags: ssh-key

- name: "Check ssh connection"
shell: ansible -i ansible/inventories/hosts.ini -m ping hetzner