Skip to content

Commit

Permalink
devcontainer: Update GITHUB_TOKEN variable to HTTP_PROXY_TOKEN for be…
Browse files Browse the repository at this point in the history
…tter clarity and consistency
  • Loading branch information
hakatashi committed Oct 3, 2024
1 parent 47f5778 commit 5d38a57
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HTTP_PROXY_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2 changes: 1 addition & 1 deletion .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
context: tunnel
dockerfile: Dockerfile
args:
- GITHUB_TOKEN=${GITHUB_TOKEN}
- HTTP_PROXY_TOKEN=${HTTP_PROXY_TOKEN}
stdin_open: true
tty: true
command: node index.mjs --remote wss://slackbot-api.tsg.ne.jp/wsfwd --host slackbot
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"service": "slackbot",
"workspaceFolder": "/code",
"secrets": {
"GITHUB_TOKEN": {
"HTTP_PROXY_TOKEN": {
"description": "http-local-fwdをクローンするためのGitHubトークン。repo権限付きの Personal Access Token を使用してください。"
}
}
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/tunnel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:20-alpine
ARG GITHUB_TOKEN
ARG HTTP_PROXY_TOKEN

RUN apk update && \
apk add git && \
git clone https://${GITHUB_TOKEN}@github.com/tsg-ut/http-local-fwd.git && \
git clone https://${HTTP_PROXY_TOKEN}@github.com/tsg-ut/http-local-fwd.git && \
cd http-local-fwd/local && \
npm install

Expand Down

0 comments on commit 5d38a57

Please sign in to comment.