We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09a5713 commit 32b2c78Copy full SHA for 32b2c78
.github/workflows/build-and-push.yml
@@ -42,9 +42,15 @@ jobs:
42
cache-from: type=gha
43
cache-to: type=gha,mode=max
44
45
+ - name: Stop and remove any existing container
46
+ run: |
47
+ docker stop telegrambot-openai-api || true
48
+ docker rm telegrambot-openai-api || true
49
+
50
- name: Run Docker container with environment variables
51
run: |
52
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
0 commit comments