Skip to content

Commit

Permalink
update cicd pipeline to run on self hosted ec2 instance
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiraj-ku committed Aug 31, 2024
1 parent 4feb05c commit 6101b65
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
matrix:
node-version: [18.x]

steps:
- name: checkout code repo
Expand All @@ -17,6 +20,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"

- name: install dependencies
run: npm install
run: npm ci

- name: create env files
run: |
touch .env
echo "${{secrets.PROD_ENV_FILE}}" > .env

0 comments on commit 6101b65

Please sign in to comment.