Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
3af5f8ff61
|
|||
|
bf939790c0
|
|||
|
6a0b836c0f
|
|||
|
16c2c8e386
|
@@ -7,7 +7,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
ENDPOINT: services-3
|
ENDPOINT: services-3
|
||||||
STACK: mastodon
|
STACK: mastodon
|
||||||
IMAGE: mastodon/mastobot
|
IMAGE: john/mastobot
|
||||||
TAG: ${{ gitea.ref_name }}
|
TAG: ${{ gitea.ref_name }}
|
||||||
CACHE_NAME: cache-python-dependencies-mastobot
|
CACHE_NAME: cache-python-dependencies-mastobot
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{env.TAG}}
|
version=${{env.TAG}}
|
||||||
tags: |
|
tags: |
|
||||||
${{secrets.DOCKER_REGISTRY}}/${{env.IMAGE}}:${{env.TAG}}
|
${{secrets.DOCKER_REGISTRY}}/${{env.IMAGE}}:${{env.TAG}}
|
||||||
${{secrets.DOCKER_REGISTRY}}/${{env.IMAGE}}:latest
|
${{secrets.DOCKER_REGISTRY}}/${{env.IMAGE}}:latest
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ COPY ./app /code/app
|
|||||||
COPY ./log_config.yml /code/log_config.yml
|
COPY ./log_config.yml /code/log_config.yml
|
||||||
ARG version
|
ARG version
|
||||||
ENV VERSION=${version}
|
ENV VERSION=${version}
|
||||||
|
RUN echo "Build Version: $VERSION"
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||||
CMD wget --spider --quiet --tries=1 --timeout=5 --server-response http://127.0.0.1:8000/health 2>&1 | grep "200 OK" > /dev/null
|
CMD wget --spider --quiet --tries=1 --timeout=5 --server-response http://127.0.0.1:8000/health 2>&1 | grep "200 OK" > /dev/null
|
||||||
CMD ["uvicorn", "main:app", "--app-dir", "app", "--log-config", "log_config.yml", "--host","0.0.0.0", "--port", "8000"]
|
CMD ["uvicorn", "main:app", "--app-dir", "app", "--log-config", "log_config.yml", "--host","0.0.0.0", "--port", "8000"]
|
||||||
Reference in New Issue
Block a user