Compare commits
3 Commits
56b625b5b8
...
v3.0
| Author | SHA1 | Date | |
|---|---|---|---|
| b6fbed1c49 | |||
| e430b99e35 | |||
| 626611f5a8 |
@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
paths:
|
paths:
|
||||||
|
- ".gitea/workflows/*"
|
||||||
- "Dockerfile"
|
- "Dockerfile"
|
||||||
- "*.py"
|
- "*.py"
|
||||||
- "requirements.txt"
|
- "requirements.txt"
|
||||||
@ -17,10 +18,10 @@ jobs:
|
|||||||
- name: Login to container registry
|
- name: Login to container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.local.chriphost.de
|
registry: gitea.vps.chriphost.de
|
||||||
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
||||||
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build . --file Dockerfile --tag gitea.local.chriphost.de/christoph/discord-heidi:latest
|
run: docker build . --file Dockerfile --tag gitea.vps.chriphost.de/christoph/discord-heidi:latest
|
||||||
- name: Push Docker image
|
- name: Push Docker image
|
||||||
run: docker push gitea.local.chriphost.de/christoph/discord-heidi:latest
|
run: docker push gitea.vps.chriphost.de/christoph/discord-heidi:latest
|
||||||
|
|||||||
@ -7,4 +7,4 @@ WORKDIR /app
|
|||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt requirements.txt
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
COPY . .
|
COPY . .
|
||||||
CMD ["python3", "bot.py"]
|
CMD ["python3", "-u", "bot.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user