Skip to content

Commit

Permalink
adjust ci tests to use iroh-relay name
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Mar 19, 2024
1 parent d28b385 commit a54bf1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/ansible/redeploy-derper.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
- name: Update derper node
- name: Update iroh-relay node
hosts: derper
become: yes

tasks:
- name: Fetch derper binary
- name: Fetch iroh-relay binary
get_url:
url: https://vorc.s3.us-east-2.amazonaws.com/derper-linux-amd64-{{ derper_version }}
mode: '0755'
force: yes
dest: /usr/local/bin/derper
dest: /usr/local/bin/iroh-relay
- name: Allow ports
shell:
cmd: sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/derper
- name: Make sure derper is started
cmd: sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/iroh-relay
- name: Make sure iroh-relay is started
ansible.builtin.systemd:
state: restarted
enabled: yes
name: derper
name: derper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Test Derper
name: Deploy Test Relay Server

on:
workflow_dispatch:
Expand All @@ -17,7 +17,7 @@ env:
SCCACHE_CACHE_SIZE: "50G"

jobs:
build_derper:
build_relay_server:
runs-on: [self-hosted, linux, X64]
if: github.ref_name=='main'
env:
Expand All @@ -35,7 +35,7 @@ jobs:

- name: build release
run: |
cargo build --release --all-features --bin derper
cargo build --release --all-features --bin iroh-relay
- name: Setup awscli on linux
run: |
Expand All @@ -50,18 +50,18 @@ jobs:
- name: push release
run: |
aws s3 cp ./target/release/derper s3://vorc/derper-linux-amd64-${GITHUB_SHA::7} --no-progress
aws s3 cp ./target/release/iroh-relay s3://vorc/derper-linux-amd64-${GITHUB_SHA::7} --no-progress
- name: Set derper tag
- name: Set iroh-relay tag
id: set_tag
run: |
echo ::set-output name=tag::${GITHUB_SHA::7}

deploy_derper:
deploy_iroh-relay:
runs-on: ubuntu-latest
if: github.ref_name=='main'
needs: build_derper
needs: build_iroh_relay
steps:
- uses: actions/checkout@v4
- name: Run Staging Deploy Playbook
Expand Down

0 comments on commit a54bf1f

Please sign in to comment.