Skip to content

Commit 8d2ca6d

Browse files
Comment out deploy workflow in deploy.yml
Comment out the entire deploy workflow for future reference.
1 parent fcd3cd7 commit 8d2ca6d

1 file changed

Lines changed: 62 additions & 62 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
1-
name: Deploy Pipeline
2-
3-
on:
4-
schedule:
5-
- cron: "45 22 * * 1-5" # 8:45 AM AEST
6-
workflow_dispatch:
7-
8-
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v4
14-
15-
- name: Set up Docker Buildx
16-
uses: docker/setup-buildx-action@v3
17-
18-
- name: Configure AWS credentials
19-
uses: aws-actions/configure-aws-credentials@v4
20-
with:
21-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
22-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
23-
aws-region: ap-southeast-2
24-
25-
- name: Install Node.js and npm
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: "20"
29-
30-
- name: Install Terraform
31-
uses: hashicorp/setup-terraform@v3
32-
33-
- name: Install zip (for Lambda build)
34-
run: sudo apt-get install -y zip
35-
36-
- name: Create frontend .env.production
37-
run: |
38-
cat <<EOF > frontend/.env.production
39-
VITE_ENV=${{ vars.VITE_ENV }}
40-
VITE_API_URL=${{ vars.VITE_API_URL }}
41-
VITE_ASSETS_URL=${{ vars.VITE_ASSETS_URL }}
42-
VITE_SOCKET_URL=${{ vars.VITE_SOCKET_URL }}
43-
EOF
44-
45-
# - name: Create terraform.tfvars
46-
# run: |
47-
# cat <<EOF > devops/terraform.tfvars
48-
# ${{ secrets.TERRAFORM_VARIABLES }}
49-
# EOF
50-
51-
- name: Run deploy script
52-
env:
53-
TF_VAR_hosted_zone_id: ${{ secrets.TF_VAR_HOSTED_ZONE_ID }}
54-
TF_VAR_cloudfront_acm_certificate_arn: ${{ secrets.TF_VAR_ACM_CERTIFICATE_ARN }}
55-
TF_VAR_db_username: ${{ secrets.TF_VAR_DB_USERNAME }}
56-
TF_VAR_db_password: ${{ secrets.TF_VAR_DB_PASSWORD }}
57-
TF_VAR_backend_image_url: ${{ vars.TF_VAR_BACKEND_IMAGE_URL }}
58-
TF_VAR_transcriber_image_url: ${{ vars.TF_VAR_TRANSCRIBER_IMAGE_URL }}
59-
run: |
60-
cd ./devops
61-
chmod +x deploy.sh
62-
./deploy.sh
1+
# name: Deploy Pipeline
2+
3+
# on:
4+
# schedule:
5+
# - cron: "45 22 * * 1-5" # 8:45 AM AEST
6+
# workflow_dispatch:
7+
8+
# jobs:
9+
# deploy:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - name: Checkout code
13+
# uses: actions/checkout@v4
14+
15+
# - name: Set up Docker Buildx
16+
# uses: docker/setup-buildx-action@v3
17+
18+
# - name: Configure AWS credentials
19+
# uses: aws-actions/configure-aws-credentials@v4
20+
# with:
21+
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
22+
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
23+
# aws-region: ap-southeast-2
24+
25+
# - name: Install Node.js and npm
26+
# uses: actions/setup-node@v4
27+
# with:
28+
# node-version: "20"
29+
30+
# - name: Install Terraform
31+
# uses: hashicorp/setup-terraform@v3
32+
33+
# - name: Install zip (for Lambda build)
34+
# run: sudo apt-get install -y zip
35+
36+
# - name: Create frontend .env.production
37+
# run: |
38+
# cat <<EOF > frontend/.env.production
39+
# VITE_ENV=${{ vars.VITE_ENV }}
40+
# VITE_API_URL=${{ vars.VITE_API_URL }}
41+
# VITE_ASSETS_URL=${{ vars.VITE_ASSETS_URL }}
42+
# VITE_SOCKET_URL=${{ vars.VITE_SOCKET_URL }}
43+
# EOF
44+
45+
# # - name: Create terraform.tfvars
46+
# # run: |
47+
# # cat <<EOF > devops/terraform.tfvars
48+
# # ${{ secrets.TERRAFORM_VARIABLES }}
49+
# # EOF
50+
51+
# - name: Run deploy script
52+
# env:
53+
# TF_VAR_hosted_zone_id: ${{ secrets.TF_VAR_HOSTED_ZONE_ID }}
54+
# TF_VAR_cloudfront_acm_certificate_arn: ${{ secrets.TF_VAR_ACM_CERTIFICATE_ARN }}
55+
# TF_VAR_db_username: ${{ secrets.TF_VAR_DB_USERNAME }}
56+
# TF_VAR_db_password: ${{ secrets.TF_VAR_DB_PASSWORD }}
57+
# TF_VAR_backend_image_url: ${{ vars.TF_VAR_BACKEND_IMAGE_URL }}
58+
# TF_VAR_transcriber_image_url: ${{ vars.TF_VAR_TRANSCRIBER_IMAGE_URL }}
59+
# run: |
60+
# cd ./devops
61+
# chmod +x deploy.sh
62+
# ./deploy.sh

0 commit comments

Comments
 (0)