refactor: add flag

This commit is contained in:
Mauricio Siu 2024-10-10 21:52:09 -06:00
parent 00ed202127
commit d31cab76f0
2 changed files with 4 additions and 1 deletions

View File

@ -67,6 +67,8 @@ jobs:
run: |
echo "NODE_ENV=production" >> .env
echo "IS_CLOUD=true" >> .env
echo .env
echo Dockerfile.cloud
- name: Build and push Docker image
uses: docker/build-push-action@v4
@ -76,7 +78,7 @@ jobs:
push: true
tags: |
siumauricio/cloud:${{ github.ref_name == 'main' && 'main' || 'canary' }}
platforms: linux/amd64
platforms: linux/amd64
build-and-push-schedule-image:
runs-on: ubuntu-latest

View File

@ -28,6 +28,7 @@ WORKDIR /app
# Set production
ENV NODE_ENV=production
ENV IS_CLOUD=true
RUN apt-get update && apt-get install -y curl unzip apache2-utils && rm -rf /var/lib/apt/lists/*