Skip to content

Commit

Permalink
refactor: infrastructure improvement and cleanup (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci authored May 25, 2024
1 parent 1795894 commit 542f808
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/infrstructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ jobs:
TUNSHELL_KEYS=$(curl -sSf -X POST https://eu.relay.tunshell.com/api/sessions)
DEBUG_SHELL="sh <(curl -sSf https://lets.tunshell.com/init.sh) L $(echo ${TUNSHELL_KEYS} | jq -r .peer2_key) \${TUNSHELL_SECRET} eu.relay.tunshell.com"
WORKFLOW_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
PR_TITLE="$(jq -r .title <<< '${{ toJson(github.event.pull_request) }}')"
PR_URL="$(jq -r .html_url <<< '${{ toJson(github.event.pull_request) }}')"
PR_TITLE="$(jq -r .head_commit.message <<< '${{ toJson(github.event.workflow_run) }}')"
PR_URL="$(jq -r .head_commit.url <<< '${{ toJson(github.event.workflow_run) }}')"
PAYLOAD=$(cat <<-EOH
{
"text": "<@${{ github.actor }}> infrastructure workflow has failed:",
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# mev-commit

[![CI](https://github.com/primev/mev-commit/actions/workflows/ci.yml/badge.svg)](https://github.com/primev/mev-commit/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-BSL%201.1-blue.svg)](LICENSE.txt)


Is P2P software that creates a network of execution providers and bidders.
Bidders can broadcast bids to providers and receive commitments from them.
A high throughput POA EVM chain settles the bids at the end of a block slot.
Expand Down
7 changes: 6 additions & 1 deletion infrastructure/nomad/playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,14 @@
dest: "{{ ansible_env.HOME }}/{{ profile }}/version.txt"
when: build_templates is not defined or build_templates

- name: Cleanup System
ansible.builtin.shell: |
nomad system gc
args:
executable: bash

- name: Deploy Jobs
ansible.builtin.shell: |
[ -z "${GC_DONE}" ] && nomad system gc && GC_DONE="1" || true
nomad run {{ ansible_env.HOME }}/{{ profile }}/{{ job.name }}.nomad
[ "{{ job.name }}" = "deploy-contracts" ] && sleep 240 || true
args:
Expand Down

0 comments on commit 542f808

Please sign in to comment.