-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.54 KB
/
deploy-on-push-main.yaml
File metadata and controls
60 lines (56 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Original pipeline (kept for reference)
# name: cicd
# on:
# push:
# branches:
# - 'main'
# permissions:
# id-token: write # This is required for requesting the JWT
# contents: read # This is required for actions/checkout
# jobs:
# build-and-deploy:
# name: Build and Deploy
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [20]
# steps:
# - name: Git clone the repository
# uses: actions/checkout@v4
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: arn:aws:iam::730335464212:role/GitHub
# role-duration-seconds: 3600 #adjust as needed for your build time
# aws-region: us-east-1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'
# - run: npm ci
# - run: npx sst deploy --stage prod
# Simple pipeline that will always pass
name: simple-ci
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
always-pass:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run a simple test
run: |
echo "Running test..."
echo "Test passed successfully!"
- name: Success message
run: |
echo "Pipeline passed successfully.✅"