Skip to content

Commit b204566

Browse files
committed
Docker token passing fix
1 parent 32b2c78 commit b204566

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/build-and-push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Run Docker container with environment variables
5151
run: |
5252
docker run \
53-
--name telegrambot-openai-api \
54-
--env OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \
55-
--env TELEGRAM_BOT_API_KEY=${{ secrets.TELEGRAM_BOT_API_KEY }} \
56-
-d ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
53+
--name telegrambot-openai-api \
54+
--env OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \
55+
--env TELEGRAM_BOT_TOKEN=${{ secrets.TELEGRAM_BOT_TOKEN }} \
56+
-d ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

docker_setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ while true; do
4646
done
4747

4848
while true; do
49-
read -p "Please enter your Telegram Bot API key (required): " TELEGRAM_BOT_API_KEY
50-
validate_input "$TELEGRAM_BOT_API_KEY" && break
49+
read -p "Please enter your Telegram Bot API Token (required): " TELEGRAM_BOT_TOKEN
50+
validate_input "$TELEGRAM_BOT_TOKEN" && break
5151
done
5252

5353
# Prompt for optional API keys (user can leave them blank)

0 commit comments

Comments
 (0)