Skip to content

Commit

Permalink
Merge pull request #24 from 0xPolygon/nadim/fix-nginx
Browse files Browse the repository at this point in the history
Avoid polluting top-level repo directory
  • Loading branch information
kmurphypolygon authored Nov 29, 2023
2 parents a0de7ec + 4f7fe43 commit fd44877
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.nginx → .github/assets/Dockerfile.nginx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM nginx:alpine
COPY site /usr/share/nginx/html

#Replace default nginx.conf with custom configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY .github/assets/nginx.conf /etc/nginx/conf.d/default.conf

# Expose the desired port (default is 80 for NGINX)
EXPOSE 80
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/dev_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
ECR_REPOSITORY: docs-dev-ecr
ECS_SERVICE: docs-dev-ecs-service
ECS_CLUSTER: frontend-dev-ecs-cluster
ECS_TASK_DEFINITION: dev-taskdef.json
ECS_TASK_DEFINITION: .github/assets/dev-taskdef.json
CONTAINER_NAME: docs-dev
steps:
- name: Checkout
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.nginx .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f .github/assets/Dockerfile.nginx .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prod_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
ECR_REPOSITORY: docs-ecr
ECS_SERVICE: docs-ecs-service
ECS_CLUSTER: frontend-prod-ecs-cluster
ECS_TASK_DEFINITION: prod-taskdef.json
ECS_TASK_DEFINITION: .github/assets/prod-taskdef.json
CONTAINER_NAME: docs
steps:
- name: Checkout
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.nginx .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f .github/assets/Dockerfile.nginx .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/staging_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
ECR_REPOSITORY: docs-staging-ecr
ECS_SERVICE: docs-staging-ecs-service
ECS_CLUSTER: frontend-staging-ecs-cluster
ECS_TASK_DEFINITION: staging-taskdef.json
ECS_TASK_DEFINITION: .github/assets/staging-taskdef.json
CONTAINER_NAME: docs-staging
steps:
- name: Checkout
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.nginx .
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f .github/assets/Dockerfile.nginx .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit fd44877

Please sign in to comment.