Skip to content

Commit

Permalink
[+] Moved echo to GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei-Tin committed Aug 23, 2024
1 parent 515a61d commit ab8e861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker_compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Export cookies
run:
mkdir ./Rei
echo "${{ secrets.COOKIES }}" > ./Rei/cookies

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -29,5 +34,4 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/reibot:latest
file: ./Dockerfile
build-args: |
token=${{ secrets.DISCORD_TOKEN }}
cookies="${{ secrets.COOKIES }}"
token=${{ secrets.DISCORD_TOKEN }}
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ RUN apk add libffi-dev
RUN echo "Successfully setup the environment!"

ARG token=""
ARG cookies=""

RUN echo "${token}" >> ./Rei/discord_token
RUN echo "${cookies}" >> ./Rei/cookies

CMD [ "python", "./Rei/rei.py"]

0 comments on commit ab8e861

Please sign in to comment.