File tree Expand file tree Collapse file tree 8 files changed +7
-7
lines changed
Expand file tree Collapse file tree 8 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FROM nginx:alpine
55COPY site /usr/share/nginx/html
66
77#Replace default nginx.conf with custom configuration
8- COPY nginx.conf /etc/nginx/conf.d/default.conf
8+ COPY .github/assets/ nginx.conf /etc/nginx/conf.d/default.conf
99
1010# Expose the desired port (default is 80 for NGINX)
1111EXPOSE 80
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1717 ECR_REPOSITORY : docs-dev-ecr
1818 ECS_SERVICE : docs-dev-ecs-service
1919 ECS_CLUSTER : frontend-dev-ecs-cluster
20- ECS_TASK_DEFINITION : dev-taskdef.json
20+ ECS_TASK_DEFINITION : .github/assets/ dev-taskdef.json
2121 CONTAINER_NAME : docs-dev
2222 steps :
2323 - name : Checkout
5353 ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
5454 IMAGE_TAG : ${{ github.sha }}
5555 run : |
56- docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.nginx .
56+ docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f .github/assets/ Dockerfile.nginx .
5757 docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
5858 echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
5959
Original file line number Diff line number Diff line change 2424 ECR_REPOSITORY : docs-ecr
2525 ECS_SERVICE : docs-ecs-service
2626 ECS_CLUSTER : frontend-prod-ecs-cluster
27- ECS_TASK_DEFINITION : prod-taskdef.json
27+ ECS_TASK_DEFINITION : .github/assets/ prod-taskdef.json
2828 CONTAINER_NAME : docs
2929 steps :
3030 - name : Checkout
6060 ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
6161 IMAGE_TAG : ${{ github.sha }}
6262 run : |
63- docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.nginx .
63+ docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f .github/assets/ Dockerfile.nginx .
6464 docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
6565 echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
6666
Original file line number Diff line number Diff line change 1717 ECR_REPOSITORY : docs-staging-ecr
1818 ECS_SERVICE : docs-staging-ecs-service
1919 ECS_CLUSTER : frontend-staging-ecs-cluster
20- ECS_TASK_DEFINITION : staging-taskdef.json
20+ ECS_TASK_DEFINITION : .github/assets/ staging-taskdef.json
2121 CONTAINER_NAME : docs-staging
2222 steps :
2323 - name : Checkout
5353 ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
5454 IMAGE_TAG : ${{ github.sha }}
5555 run : |
56- docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.nginx .
56+ docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f .github/assets/ Dockerfile.nginx .
5757 docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
5858 echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
5959
You can’t perform that action at this time.
0 commit comments