Skip to content

Commit 017dcac

Browse files
authored
Switch to docker compose v2 (#105)
https://docs.docker.com/compose/migrate/
1 parent e1ed322 commit 017dcac

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ jobs:
4848
# sudo yum install -y docker git
4949
# sudo service docker start
5050
# sudo usermod -aG docker ec2-user
51-
# 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
52-
# sudo chmod o+rwx /usr/local/bin/docker-compose
5351
- name: Deploy using SSH
5452
uses: appleboy/ssh-action@v1.0.3
5553
with:
@@ -67,8 +65,8 @@ jobs:
6765
echo "${{ secrets.WWRANDO_DEV_TANJO3_SEED_KEY }}" > tww-rando-bot/wwrando-dev-tanjo3/keys/seed_key.py
6866
echo "${{ secrets.WWRANDO_RS_SEED_KEY }}" > tww-rando-bot/wwrando-random-settings/keys/seed_key.py
6967
cd tww-rando-bot
70-
docker-compose build --no-cache
68+
docker compose build --no-cache
7169
export GITHUB_TOKEN=${{ secrets.BOT_GITHUB_TOKEN }}
7270
export CLIENT_ID=${{ secrets.RACETIME_CLIENT_ID }}
7371
export CLIENT_SECRET=${{ secrets.RACETIME_CLIENT_SECRET }}
74-
docker-compose up -d
72+
docker compose up -d

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ generating [TWW Randomizer](https://github.com/LagoLunatic/wwrando) seeds in rac
1414
### Installation
1515

1616
1. Clone the repo
17-
2. Build the Docker image with `docker-compose build`
17+
2. Build the Docker image with `docker compose build`
1818

1919
### Usage
2020

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

0 commit comments

Comments
 (0)