diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index eab8279..ab93c54 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -31,7 +31,7 @@ jobs: echo "VERSION=${VERSION}" >> $GITHUB_ENV - name: Build Docker image - run: docker build --build-arg VERSION=${env.VERSION} -t noahh99/hermes:latest . + run: docker build --build-arg VERSION=${{ env.VERSION }} -t noahh99/hermes:latest . - name: Tag Docker image with version run: | diff --git a/Dockerfile b/Dockerfile index 070fccc..369a721 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,9 @@ COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt +COPY . /app/ + ARG VERSION RUN echo $VERSION > /app/bot/version.txt -COPY . /app/ - CMD ["python", "bot/bot.py"]