Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrofisr committed Jun 30, 2024
1 parent 0d0113b commit 19d3b8c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,27 @@ jobs:
push: true
tags: us-central1-docker.pkg.dev/${{ secrets.PROJECT_ID }}/cloud-run/cloud-run-front:${{ env.IMAGE_VERSION }}

# - name: Deploy to Cloud Run Backend
# id: deploy-cloud-run-back
# uses: google-github-actions/deploy-cloudrun@v2
# with:
# service: cloud-run-backend-${{ env.IMAGE_VERSION }}
# image: us-central1-docker.pkg.dev/${{ secrets.PROJECT_ID }}/cloud-run/cloud-run-back:${{ env.IMAGE_VERSION }}
# region: us-central1
# project_id: ${{ secrets.PROJECT_ID }}
# flags: --port 4000
- name: Deploy to Cloud Run Backend
id: deploy-cloud-run-back
uses: google-github-actions/deploy-cloudrun@v2
with:
service: cloud-run-backend-${{ env.IMAGE_VERSION }}
image: us-central1-docker.pkg.dev/${{ secrets.PROJECT_ID }}/cloud-run/cloud-run-back:${{ env.IMAGE_VERSION }}
region: us-central1
project_id: ${{ secrets.PROJECT_ID }}
flags: --port 4000 --allow-unauthenticated

# - name: Deploy to Cloud Run Frontend
# id: deploy-cloud-run-front
# uses: google-github-actions/deploy-cloudrun@v2
# with:
# service: cloud-run-frontend-${{ env.IMAGE_VERSION }}
# image: us-central1-docker.pkg.dev/${{ secrets.PROJECT_ID }}/cloud-run/cloud-run-front:${{ env.IMAGE_VERSION }}
# region: us-central1
# project_id: ${{ secrets.PROJECT_ID }}
# flags: --port 80
- name: Deploy to Cloud Run Frontend
id: deploy-cloud-run-front
uses: google-github-actions/deploy-cloudrun@v2
with:
service: cloud-run-frontend-${{ env.IMAGE_VERSION }}
image: us-central1-docker.pkg.dev/${{ secrets.PROJECT_ID }}/cloud-run/cloud-run-front:${{ env.IMAGE_VERSION }}
region: us-central1
project_id: ${{ secrets.PROJECT_ID }}
flags: --port 8080 --allow-unauthenticated

# - name: Test Cloud Run
# run: |
# 'curl "${{ steps.deploy-cloud-run-back.outputs.url }}"'
# 'curl "${{ steps.deploy-cloud-run-front.outputs.url }}"'
- name: Test Cloud Run
run: |
'curl "${{ steps.deploy-cloud-run-back.outputs.url }}"'
'curl "${{ steps.deploy-cloud-run-front.outputs.url }}"'
2 changes: 1 addition & 1 deletion Dockerfile.front
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ FROM nginx:alpine-slim
COPY --from=builder /front/build /front/build
RUN chmod -R 755 /front/build/.
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ http {
}

server {
listen 80;
listen 8080;
server_name _;
index index.html index.htm;

Expand Down

0 comments on commit 19d3b8c

Please sign in to comment.