Skip to content

Commit

Permalink
Switch to docker compose v2 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooferzfg authored Mar 26, 2024
1 parent e1ed322 commit 017dcac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
# sudo yum install -y docker git
# sudo service docker start
# sudo usermod -aG docker ec2-user
# sudo curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# sudo chmod o+rwx /usr/local/bin/docker-compose
- name: Deploy using SSH
uses: appleboy/[email protected]
with:
Expand All @@ -67,8 +65,8 @@ jobs:
echo "${{ secrets.WWRANDO_DEV_TANJO3_SEED_KEY }}" > tww-rando-bot/wwrando-dev-tanjo3/keys/seed_key.py
echo "${{ secrets.WWRANDO_RS_SEED_KEY }}" > tww-rando-bot/wwrando-random-settings/keys/seed_key.py
cd tww-rando-bot
docker-compose build --no-cache
docker compose build --no-cache
export GITHUB_TOKEN=${{ secrets.BOT_GITHUB_TOKEN }}
export CLIENT_ID=${{ secrets.RACETIME_CLIENT_ID }}
export CLIENT_SECRET=${{ secrets.RACETIME_CLIENT_SECRET }}
docker-compose up -d
docker compose up -d
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ generating [TWW Randomizer](https://github.com/LagoLunatic/wwrando) seeds in rac
### Installation

1. Clone the repo
2. Build the Docker image with `docker-compose build`
2. Build the Docker image with `docker compose build`

### Usage

Expand All @@ -25,4 +25,4 @@ export CATEGORY_SLUG=... # the slug of the racetime.gg category the bot should o
export CLIENT_ID=... # the OAuth2 client ID for this bot on racetime.gg
export CLIENT_SECRET=... # the OAuth2 client secret for this bot on racetime.gg
```
2. Run `docker-compose up` to start the bot.
2. Run `docker compose up` to start the bot.

0 comments on commit 017dcac

Please sign in to comment.