Skip to content

Commit

Permalink
update secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrastopoulos committed May 20, 2023
1 parent 649d94f commit d756c99
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,39 @@ name: Docker Image CI

on:
push:
branches: [ "Production" ]
branches: ['Production']
pull_request:
branches: [ "Production" ]
branches: ['Production']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
touch apps/dashboard/.env.local
echo DISCORD_BOT_TOKEN=${{ secrets.DISCORD_BOT_TOKEN }} >> apps/dashboard/.env.local
docker compose -f docker-compose.yml build --no-cache --pull
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
touch apps/bot/.env
echo DISCORD_BOT_TOKEN=${{ secrets.DISCORD_BOT_TOKEN }} >> apps/bot/.env
echo DEV_GUILD_IDS=${{ secrets.DEV_GUILD_IDS }} >> apps/bot/.env
echo SUPPORT_GUILD_INVITE_URL=${{ secrets.SUPPORT_GUILD_INVITE_URL }} >> apps/bot/.env
echo DEPLOY_COMMANDS=${{ secrets.DEPLOY_COMMANDS }} >> apps/bot/.env
echo DEPLOY_ALL_MODULES=${{ secrets.DEPLOY_ALL_MODULES }} >> apps/bot/.env
echo DB_URL=${{ secrets.DB_URL }} >> apps/bot/.env
echo DB_OPTION=${{ secrets.DB_OPTION }} >> apps/bot/.env
echo HOME_URL=${{ secrets.HOME_URL }} >> apps/bot/.env
echo COMMANDS_URL=${{ secrets.COMMANDS_URL }} >> apps/bot/.env
echo DOCS_URL=${{ secrets.DOCS_URL }} >> apps/bot/.env
echo VOTE_URL=${{ secrets.VOTE_URL }} >> apps/bot/.env
touch apps/dashboard/.env
echo DISCORD_BOT_TOKEN=${{ secrets.DISCORD_BOT_TOKEN }} >> apps/dashboard/.env
echo DISCORD_CLIENT_ID=${{ secrets.DISCORD_CLIENT_ID }} >> apps/dashboard/.env
echo DISCORD_CLIENT_SECRET=${{ secrets.DISCORD_CLIENT_SECRET }} >> apps/dashboard/.env
echo NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} >> apps/dashboard/.env
echo NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL }} >> apps/dashboard/.env
echo DB_URL=${{ secrets.DB_URL }} >> apps/dashboard/.env
echo DB_OPTION=${{ secrets.DB_OPTION }} >> apps/dashboard/.env
echo INVITE_BOT_URL=${{ secrets.INVITE_BOT_URL }} >> apps/dashboard/.env
echo SUPPORT_GUILD_INVITE_URL=${{ secrets.SUPPORT_GUILD_INVITE_URL }} >> apps/dashboard/.env
docker compose -f docker-compose.yml build --no-cache --pull

0 comments on commit d756c99

Please sign in to comment.