Skip to content

Commit 3895529

Browse files
Update deploy.yml
1 parent 08d70d3 commit 3895529

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

.github/workflows/deploy.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
name: Deploy Pipeline
1+
# name: Deploy Pipeline
22

3-
on:
4-
schedule:
5-
- cron: "45 22 * * 1-5" # 8:45 AM AEST
6-
workflow_dispatch:
3+
# on:
4+
# schedule:
5+
# - cron: "45 22 * * 1-5" # 8:45 AM AEST
6+
# workflow_dispatch:
77

8-
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Check if deploy should run
13-
if: vars.RUN_DEPLOY == 'true'
14-
run: echo "Deploying..."
8+
# jobs:
9+
# deploy:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - name: Check if deploy should run
13+
# if: vars.RUN_DEPLOY == 'true'
14+
# run: echo "Deploying..."
1515

16-
- name: Checkout code
17-
uses: actions/checkout@v4
16+
# - name: Checkout code
17+
# uses: actions/checkout@v4
1818

19-
- name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v3
19+
# - name: Set up Docker Buildx
20+
# uses: docker/setup-buildx-action@v3
2121

22-
- name: Configure AWS credentials
23-
uses: aws-actions/configure-aws-credentials@v4
24-
with:
25-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
26-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
27-
aws-region: ap-southeast-2
22+
# - name: Configure AWS credentials
23+
# uses: aws-actions/configure-aws-credentials@v4
24+
# with:
25+
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
26+
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
27+
# aws-region: ap-southeast-2
2828

29-
- name: Install Node.js and npm
30-
uses: actions/setup-node@v4
31-
with:
32-
node-version: "20"
29+
# - name: Install Node.js and npm
30+
# uses: actions/setup-node@v4
31+
# with:
32+
# node-version: "20"
3333

34-
- name: Install Terraform
35-
uses: hashicorp/setup-terraform@v3
34+
# - name: Install Terraform
35+
# uses: hashicorp/setup-terraform@v3
3636

37-
- name: Install zip (for Lambda build)
38-
run: sudo apt-get install -y zip
37+
# - name: Install zip (for Lambda build)
38+
# run: sudo apt-get install -y zip
3939

40-
- name: Create frontend .env.production
41-
run: |
42-
cat <<EOF > frontend/.env.production
43-
VITE_ENV=${{ vars.VITE_ENV }}
44-
VITE_API_URL=${{ vars.VITE_API_URL }}
45-
VITE_ASSETS_URL=${{ vars.VITE_ASSETS_URL }}
46-
VITE_SOCKET_URL=${{ vars.VITE_SOCKET_URL }}
47-
EOF
40+
# - name: Create frontend .env.production
41+
# run: |
42+
# cat <<EOF > frontend/.env.production
43+
# VITE_ENV=${{ vars.VITE_ENV }}
44+
# VITE_API_URL=${{ vars.VITE_API_URL }}
45+
# VITE_ASSETS_URL=${{ vars.VITE_ASSETS_URL }}
46+
# VITE_SOCKET_URL=${{ vars.VITE_SOCKET_URL }}
47+
# EOF
4848

49-
# - name: Create terraform.tfvars
50-
# run: |
51-
# cat <<EOF > devops/terraform.tfvars
52-
# ${{ secrets.TERRAFORM_VARIABLES }}
53-
# EOF
49+
# # - name: Create terraform.tfvars
50+
# # run: |
51+
# # cat <<EOF > devops/terraform.tfvars
52+
# # ${{ secrets.TERRAFORM_VARIABLES }}
53+
# # EOF
5454

55-
- name: Run deploy script
56-
env:
57-
TF_VAR_hosted_zone_id: ${{ secrets.TF_VAR_HOSTED_ZONE_ID }}
58-
TF_VAR_cloudfront_acm_certificate_arn: ${{ secrets.TF_VAR_ACM_CERTIFICATE_ARN }}
59-
TF_VAR_db_username: ${{ secrets.TF_VAR_DB_USERNAME }}
60-
TF_VAR_db_password: ${{ secrets.TF_VAR_DB_PASSWORD }}
61-
TF_VAR_backend_image_url: ${{ vars.TF_VAR_BACKEND_IMAGE_URL }}
62-
TF_VAR_transcriber_image_url: ${{ vars.TF_VAR_TRANSCRIBER_IMAGE_URL }}
63-
run: |
64-
cd ./devops
65-
chmod +x deploy.sh
66-
./deploy.sh
55+
# - name: Run deploy script
56+
# env:
57+
# TF_VAR_hosted_zone_id: ${{ secrets.TF_VAR_HOSTED_ZONE_ID }}
58+
# TF_VAR_cloudfront_acm_certificate_arn: ${{ secrets.TF_VAR_ACM_CERTIFICATE_ARN }}
59+
# TF_VAR_db_username: ${{ secrets.TF_VAR_DB_USERNAME }}
60+
# TF_VAR_db_password: ${{ secrets.TF_VAR_DB_PASSWORD }}
61+
# TF_VAR_backend_image_url: ${{ vars.TF_VAR_BACKEND_IMAGE_URL }}
62+
# TF_VAR_transcriber_image_url: ${{ vars.TF_VAR_TRANSCRIBER_IMAGE_URL }}
63+
# run: |
64+
# cd ./devops
65+
# chmod +x deploy.sh
66+
# ./deploy.sh

0 commit comments

Comments
 (0)