Skip to content

Commit

Permalink
Fixed Ci/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahH99 committed Nov 27, 2024
1 parent e2b3fb5 commit 087a0b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 087a0b2

Please sign in to comment.