Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshvm authored Jul 6, 2024
1 parent cfa8725 commit f53b3c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ concurrency:
jobs:
cluster:
name: Setup and Test Nomad Cluster
#runs-on: ubuntu-22.04
runs-on: self-hosted
runs-on: ubuntu-22.04
# runs-on: self-hosted
timeout-minutes: 180

steps:
Expand Down Expand Up @@ -173,11 +173,11 @@ jobs:
fi
working-directory: infrastructure/nomad

- name: Destroy Existing Cluster
if: ${{ env.IS_MANUAL_DEPLOYMENT == 'true' }}
run: |
./cluster.sh destroy ${CLUSTER_DEBUG_FLAG}
working-directory: infrastructure/nomad
# - name: Destroy Existing Cluster
# if: ${{ env.IS_MANUAL_DEPLOYMENT == 'true' }}
# run: |
# ./cluster.sh destroy ${CLUSTER_DEBUG_FLAG}
# working-directory: infrastructure/nomad

- name: Initialize Cluster
if: ${{ env.IS_MANUAL_DEPLOYMENT == 'false' }}
Expand Down
7 changes: 4 additions & 3 deletions infrastructure/nomad/playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,9 @@
ansible.builtin.shell: |
cat {{ ansible_env.HOME }}/{{ env }}/{{ job.name }}.nomad
echo "nomad file"
nomad run {{ ansible_env.HOME }}/{{ env }}/{{ job.name }}.nomad
nomad job plan {{ ansible_env.HOME }}/{{ env }}/{{ job.name }}.nomad
#nomad run {{ ansible_env.HOME }}/{{ env }}/{{ job.name }}.nomad
TIMEOUT={% if profile == 'ci' %}600{% else %}300{% endif %}
POLL_INTERVAL=2
Expand Down Expand Up @@ -651,7 +652,7 @@
job: "{{ item }}"
register: result
failed_when: result.rc != 0
parallel: true # Run jobs in parallel
# parallel: true # Run jobs in parallel


- name: Post Deployment Info
Expand Down

0 comments on commit f53b3c4

Please sign in to comment.