Skip to content

Commit

Permalink
chore(ci): Print if env vars are null
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira committed Jun 6, 2024
1 parent 7ad1ea1 commit fd23ffe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down Expand Up @@ -61,6 +66,16 @@ jobs:
cd ~/duckbot
aws s3 cp s3://${{ secrets.AWS_S3_BUCKET }}/duckbot/duckbot.tar.gz .
aws s3 cp s3://${{ secrets.AWS_S3_BUCKET }}/duckbot/docker-compose.yml .
if [ -z "$GUILD_ID" ]; then
echo "GUILD_ID is null"
else
echo "GUILD_ID is not null"
fi
if [ -z "$BOT_TOKEN" ]; then
echo "BOT_TOKEN is null"
else
echo "BOT_TOKEN is not null"
fi
echo GUILD_ID=${GUILD_ID} > .env
echo BOT_TOKEN=${BOT_TOKEN} >> .env
docker load -i duckbot.tar.gz
Expand Down

0 comments on commit fd23ffe

Please sign in to comment.