feat: update Docker setup to use custom proxy image and remove redundant steps
Some checks failed
Build and Deploy Thoughts / build-and-deploy-local (push) Failing after 7s
Some checks failed
Build and Deploy Thoughts / build-and-deploy-local (push) Failing after 7s
This commit is contained in:
@@ -26,17 +26,8 @@ jobs:
|
||||
run: |
|
||||
docker build --target runtime -t thoughts-backend:latest ./thoughts-backend
|
||||
docker build --target release -t thoughts-frontend:latest --build-arg NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }} ./thoughts-frontend
|
||||
docker build -t custom-proxy:latest ./nginx
|
||||
|
||||
- name: List Files in Workspace
|
||||
run: |
|
||||
echo "--- Listing all files recursively ---"
|
||||
ls -lR
|
||||
|
||||
- name: Dump Environment Variables for Debugging
|
||||
run: |
|
||||
echo "--- All available environment variables ---"
|
||||
env | sort
|
||||
|
||||
- name: Deploy with Docker Compose
|
||||
run: |
|
||||
# Use "up" without --build, as images are already built
|
||||
|
@@ -49,7 +49,7 @@ services:
|
||||
|
||||
proxy:
|
||||
container_name: thoughts-proxy
|
||||
image: nginx:stable-alpine
|
||||
image: custom-proxy:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${GITHUB_WORKSPACE}/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
|
3
nginx/Dockerfile
Normal file
3
nginx/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
Reference in New Issue
Block a user