Skip to content

Commit

Permalink
#163: Change icat-ansible to use non-forked version
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jan 14, 2021
1 parent 4672e03 commit d6ac7b2
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
run: ls -la /etc/mysql/mysql.conf.d
- name: Check what's in /var/lib/mysql/
run: sudo ls -la /var/lib/mysql/

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 8
java-package: jdk

- name: Checkout icat-ansible
uses: actions/checkout@v2
with:
repository: mrichards99/icat-ansible
repository: icatproject-contrib/icat-ansible
ref: change-payara-setup-script-url
path: icat-ansible
- name: Install Ansible
Expand All @@ -58,39 +58,41 @@ jobs:
#- name: Replace default payara user with Actions user
#run: |
#'sed -i -e "s/^payara_user: \"glassfish\"/payara_user: \"runner\"/" icat-ansible/group_vars/all/vars.yml'
- name: Debug ansible_os_family
run: ansible -m setup localhost.localdomain

- name: Run ICAT Ansible Playbook (cmd line)
run: |
ansible-playbook icat-ansible/hosts-all.yml -i icat-ansible/hosts --vault-password-file icat-ansible/vault_pass.txt -vv
#- name: Run ICAT Ansible Playbook
#uses: saubermacherag/ansible-playbook-docker-action@v1.4
#with:
#playbookName: 'icat-ansible/hosts-all.yml'
#inventoryFile: 'icat-ansible/hosts'
#extraVars: "--vault-password-file icat-ansible/vault_pass.txt"
#verbosity: "vv"
- name: Checkout DataGateway API
uses: actions/checkout@v2
with:
path: main
path: datagateway-api
- name: Debug ls1
run: |
pwd
ls -la
- name: Create log file
run: touch logs.log
- name: Configure log file location
run: echo "`jq -r --arg REPO_DIR "$GITHUB_WORKSPACE/logs.log" \
'.log_location=$REPO_DIR' main/config.json.example`" > main/config.json.example
'.log_location=$REPO_DIR' datagateway-api/config.json.example`" > datagateway-api/config.json.example
- name: Create config.json
run: cp main/config.json.example main/config.json
run: cp datagateway-api/config.json.example datagateway-api/config.json
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Debug ls2
run: |
pwd
ls -la
- name: Move to API repo
run: cd main/
run: cd datagateway-api/
- name: Debug ls3
run: |
pwd
ls -la
- name: Install Nox
run: pip install nox==2020.8.22
- name: Install Poetry
Expand Down

0 comments on commit d6ac7b2

Please sign in to comment.