Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
emmahyde authored Nov 20, 2023
1 parent f6db419 commit 47417b3
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
uses: actions/checkout@v2

- name: Build container image
run: |
docker build -t \
registry.digitalocean.com/emmahyde-containers/dulapeepbot:latest
run: >
docker build -t
registry.digitalocean.com/emmahyde-containers/dulapeepbot:latest
- name: Install doctl
uses: digitalocean/action-doctl@v2
Expand All @@ -31,16 +31,17 @@ jobs:
run: doctl registry login --expiry-seconds 600

- name: Push image to DigitalOcean Container Registry
run: |
docker push \
registry.digitalocean.com/emmahyde-containers/dulapeepbot:latest
run: >
docker push
registry.digitalocean.com/emmahyde-containers/dulapeepbot:latest
- name: Pull image to DigitalOcean 'dulapeepbot' Droplet
run: docker image pull

- name: Compose and Run 'dulapeepbot:latest'
run: |
DISCORD_CLIENT_ID=$DISCORD_CLIENT_ID \
DISCORD_API_TOKEN=$DISCORD_API_TOKEN \
TZ=$TZ \
docker compose up -d --build
run: >
DISCORD_CLIENT_ID=$DISCORD_CLIENT_ID
DISCORD_API_TOKEN=$DISCORD_API_TOKEN
TZ=$TZ
docker compose up -d --build

0 comments on commit 47417b3

Please sign in to comment.