-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix scan states for task overview * Clean up logout method references * Use image value distribution to remove outliers from automatic window values * Prevent experiments from getting added to the experiment list twice * Fix change to logout button in Navbar * Remove console log * Update project state when a scan decision is submitted * Reformat email content * Use timeout dialog when server session has expired * Remove vtk view drag interaction for updating window * Strip whitespace values from paths in import files * Account for undefined values in various places, as reported by Sentry * Demo instance does not have access to .git directory and cannot fetch version * Write Github action for running ansible playbook (#568) * Write Github action for running ansible playbook * Remove "on pull request" * Use -p argument for mkdir command Co-authored-by: Zach Mullen <[email protected]> Co-authored-by: Zach Mullen <[email protected]> * Use a fixed number of queries for Project.get_status() * Add test for project status response * Use project.get_status directly and zip(decisions, scans) * Remove refresh from DB Co-authored-by: Zach Mullen <[email protected]>
- Loading branch information
1 parent
61cce38
commit 41481bf
Showing
20 changed files
with
174 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Update Celery worker | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
ansible: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ansible role | ||
run: ansible-galaxy install -r ansible/requirements.yml | ||
- name: Write vault pass and private key | ||
env: | ||
VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} | ||
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
run: | | ||
echo $VAULT_PASSWORD > ansible/vault_pass.txt | ||
mkdir -p $HOME/.ssh | ||
echo "$PRIVATE_KEY" > $HOME/.ssh/id_miqa | ||
chmod 600 $HOME/.ssh/id_miqa | ||
- name: Run Ansible playbook for Celery | ||
env: | ||
ANSIBLE_HOST_KEY_CHECKING: false | ||
working-directory: ansible | ||
run: ansible-playbook --vault-password-file vault_pass.txt -i hosts playbook.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.