Skip to content

Commit

Permalink
ci(ignore): don't ignore env for build
Browse files Browse the repository at this point in the history
  • Loading branch information
anteqkois committed May 19, 2024
1 parent dbbad2b commit 30d3232
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tools
.dockerignore
.env
.env.*
!**/.env.prod-build
.eslintignore
.gitignore
.prettierignore
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Log in to DO Container Registry
run: doctl registry login --expiry-seconds 600
- name: Pull existing base image
run: docker pull registry.digitalocean.com/linkerry/base:latest || echo "No existing image to pull"
# - name: Pull existing base image
# run: docker pull registry.digitalocean.com/linkerry/base:latest || echo "No existing image to pull"
- name: Build base image
run: npm run docker-base-linux
# - name: Tag base image
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# env
.env
.env.*
!**/.env.prod-build

# compiled output
dist
Expand Down
13 changes: 13 additions & 0 deletions apps/web/.env.prod-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# # # # # # # # # # # # # # # Proxy # # # # # # # # # # # # # # #
VIRTUAL_HOST=linkerry.com,www.linkerry.com
LETSENCRYPT_HOST=linkerry.com
VIRTUAL_PORT=3000

# # # # # # # # # # # # # # # CI # # # # # # # # # # # # # # # # # # #
ENV=prod

# # # # # # # # # # # # # # # NEXT # # # # # # # # # # # # # # #
NEXT_TELEMETRY_DISABLED=true
NEXT_PUBLIC_API_HOST=https://api.linkerry.com
PORT=3000

0 comments on commit 30d3232

Please sign in to comment.