Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mnagaraju5628 committed Aug 8, 2024
1 parent a7c59b1 commit 1b3d1b8
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,25 @@ on:

jobs:
deploy:

runs-on: self-hosted

steps:
- name: Checkout code
uses: actions/checkout@v4
strategy:
matrix:
node-version: [14.x]

- name: Decrypt credentials
run: |
steps:
- uses: actions/checkout@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: npm run build --if-present
- run: npm install
- name: Decrypt credentials
run: |
# Path variables
CREDENTIALS_ENC="/home/mnagaraju/actions-runner/Testproject-inno/credentials.enc"
ENCRYPTION_KEY="/home/mnagaraju/actions-runner/Testproject-inno/encryption_key.txt"
Expand All @@ -30,7 +41,7 @@ jobs:
echo "Decryption succeeded"
- name: Deploy with Docker Compose
run: |
- name: Deploy with Docker Compose
run: |
docker-compose -f /home/mnagaraju/actions-runner/Testproject-inno/docker-compose-test.yml up --build -d

0 comments on commit 1b3d1b8

Please sign in to comment.