Skip to content

Commit 03bdb7e

Browse files
committed
updated prod deployment
1 parent c6d504f commit 03bdb7e

File tree

2 files changed

+17
-39
lines changed

2 files changed

+17
-39
lines changed

.github/workflows/deploy-to-dev.yaml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,3 @@ jobs:
1515
steps:
1616
- name: Placeholder
1717
run: echo "Deployment steps are defined in amplify.yml"
18-
19-
# - name: Checkout code
20-
# uses: actions/checkout@v4
21-
# # Setup Node.js
22-
# - name: Setup Node.js
23-
# uses: actions/setup-node@v4
24-
# with:
25-
# node-version: 20
26-
# cache: "yarn"
27-
# # Configure AWS Credentials
28-
# - name: Configure AWS credentials
29-
# uses: aws-actions/configure-aws-credentials@v4
30-
# with:
31-
# role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
32-
# aws-region: ap-southeast-1
33-
# # Install dependencies
34-
# - name: Install dependencies
35-
# run: yarn install --frozen-lockfile
36-
# # Load NEXT_PUBLIC envs from Secret JSON
37-
# - name: Load NEXT_PUBLIC envs from JSON secret
38-
# run: |
39-
# echo '${{ secrets.DEV_NEXT_PUBLIC_ENV }}' | jq '.' > next_public_env.json
40-
# jq -r 'to_entries[] | "\(.key)=\(.value)"' next_public_env.json >> $GITHUB_ENV
41-
# # Load server-only API envs from Secret JSON
42-
# - name: Load NEXT_API envs from JSON secret
43-
# run: |
44-
# echo '${{ secrets.DEV_NEXT_API_ENV }}' | jq '.' > next_api_env.json
45-
# jq -r 'to_entries[] | "\(.key)=\(.value)"' next_api_env.json >> $GITHUB_ENV
46-
# # Create ZIP of source code
47-
# - name: Create ZIP
48-
# run: zip -r app.zip . -x "*.git*" "*node_modules*"
49-
# # Deploy to Amplify
50-
# - name: Deploy to Amplify
51-
# run: |
52-
# DEPLOYMENT=$(aws amplify create-deployment --app-id ${{ secrets.AMPLIFY_APP_ID }} --branch-name staging)
53-
# JOB_ID=$(echo $DEPLOYMENT | jq -r '.jobId')
54-
# ZIP_URL=$(echo $DEPLOYMENT | jq -r '.zipUploadUrl')
55-
# curl -X PUT -H "Content-Type: application/zip" --data-binary @app.zip "$ZIP_URL"
56-
# aws amplify start-deployment --app-id ${{ secrets.AMPLIFY_APP_ID }} --branch-name staging --job-id "$JOB_ID"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Deploy to prod
2+
env:
3+
IMAGE: hansards-front
4+
ENVIRONMENT: production
5+
on:
6+
push:
7+
branches:
8+
- main
9+
permissions:
10+
id-token: write # This is required for requesting the JWT
11+
contents: read # This is required for actions/checkout
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Placeholder
17+
run: echo "Deployment steps are defined in amplify.yml"

0 commit comments

Comments
 (0)