diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d427054..d1f31ad 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -38,7 +38,7 @@ jobs: file: ./Dockerfile push: true build-args: | - VERSION=${{env.TAG}} + version=${{env.TAG}} tags: | ${{secrets.DOCKER_REGISTRY}}/${{env.IMAGE}}:${{env.TAG}} ${{secrets.DOCKER_REGISTRY}}/${{env.IMAGE}}:latest diff --git a/Dockerfile b/Dockerfile index cc70a4c..6c4ebb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ COPY ./app /code/app COPY ./log_config.yml /code/log_config.yml ARG version ENV VERSION=${version} +RUN echo "Build Version: $VERSION" 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 ["uvicorn", "main:app", "--app-dir", "app", "--log-config", "log_config.yml", "--host","0.0.0.0", "--port", "8000"] \ No newline at end of file