Skip to content

Commit 49fb198

Browse files
authored
Merge pull request #1 from bare-metal-edu/token-fetcher
Automatically fetch runner token using PAT
2 parents db9ddbb + 74580d9 commit 49fb198

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
docker-compose.yml
2+
.env

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
services:
22
gdbuddy:
33
image: ghcr.io/bare-metal-edu/gdbuddy:latest
4+
stdin_open: true
5+
tty: true
46
environment:
57
RUNNER_ORG: https://github.com/bare-metal-edu
68
GITHUB_PAT: ${GITHUB_PAT}

entrypoint.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ cd /runner && \
1515
./config.sh --url "$RUNNER_ORG" --token "$RUNNER_TOKEN" &&
1616
./run.sh &
1717

18-
/tools/openocd/src/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /tools/openocd/tcl -f /tools/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000"
18+
/tools/openocd/src/openocd \
19+
-c "gdb port 50000" \
20+
-c "tcl port 50001" \
21+
-c "telnet port 50002" \
22+
-s /tools/openocd/tcl \
23+
-f /tools/openocd-helpers.tcl \
24+
-f interface/cmsis-dap.cfg \
25+
-f target/rp2040.cfg \
26+
-c "adapter speed 5000"
1927

2028

0 commit comments

Comments
 (0)