Skip to content

Commit cf59a4d

Browse files
author
Sarvesh Kumar
committed
Add server keys
1 parent 569c8bc commit cf59a4d

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed

.github/workflows/master_push.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: MASTER
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
push:
7+
branches: [ master ]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
# This workflow contains a single job called "build"
12+
build:
13+
# The type of runner that the job will run on
14+
runs-on: ubuntu-latest
15+
16+
# Steps represent a sequence of tasks that will be executed as part of the job
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- uses: actions/checkout@v2
20+
21+
# Runs a single command using the runners shell
22+
- name: 'Build and Deploy'
23+
run: |
24+
wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
25+
mkdir sfdx-cli
26+
tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-components 1
27+
./sfdx-cli/install
28+
# Runs a set of commands using the runners shell
29+
- name: 'Decrypt file'
30+
run: openssl enc -nosalt -aes-256-cbc -d -in asset/server.key.enc -out server.key -base64 -K ${{secrets.DECRYPTION_KEY}} -iv ${{secrets.DECRYPTION_IV}}
31+
- name: 'Authorize'
32+
run: |
33+
echo username value ${{ secrets.USERNAME_STAGING }}
34+
sfdx force:auth:jwt:grant --clientid=${{ secrets.CONSUMER_KEY }} --username=${{ secrets.USERNAME }} --jwtkeyfile server.key --setdefaultdevhubusername --setalias=hub-org
35+
- name: 'Convert Metadata'
36+
run: sfdx force:source:convert --rootdir=force-app --outputdir=convert
37+
- name: 'Run Test on Metadata'
38+
run: sfdx force:mdapi:deploy --deploydir=convert --testlevel=RunLocalTests -u hub-org

.github/workflows/pull_request.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PR
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
# This workflow contains a single job called "build"
12+
build:
13+
# The type of runner that the job will run on
14+
runs-on: ubuntu-latest
15+
16+
# Steps represent a sequence of tasks that will be executed as part of the job
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- uses: actions/checkout@v2
20+
21+
# Runs a single command using the runners shell
22+
- name: 'Build and Deploy'
23+
run: |
24+
wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
25+
mkdir sfdx-cli
26+
tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-components 1
27+
./sfdx-cli/install
28+
# Runs a set of commands using the runners shell
29+
- name: 'Decrypt file'
30+
run: openssl enc -nosalt -aes-256-cbc -d -in asset/server.key.enc -out server.key -base64 -K ${{secrets.DECRYPTION_KEY}} -iv ${{secrets.DECRYPTION_IV}}
31+
- name: 'Authorize'
32+
run: |
33+
echo username value ${{ secrets.USERNAME_STAGING }}
34+
sfdx force:auth:jwt:grant --clientid=${{ secrets.CONSUMER_KEY }} --username=${{ secrets.USERNAME }} --jwtkeyfile server.key --setdefaultdevhubusername --setalias=hub-org
35+
- name: 'Convert Metadata'
36+
run: sfdx force:source:convert --rootdir=force-app --outputdir=convert
37+
- name: 'Run Test on Metadata'
38+
run: sfdx force:mdapi:deploy --deploydir=convert --testlevel=RunLocalTests --checkonly -u hub-org

asset/server.key.enc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
zVCD7/pmjvQHmgMmgMdshg9KFJRJikFQBvQKStGL6nytWWwKBS+2QfZOoXl2T4Fv
2+
5z0rVb/uFMx0CJdz10yPkf+ihMWZT0diDt/xMMRw9YJnP65eqgUgc02S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