-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.69 KB
/
releaseDeploy.yml
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
name: Release - deploy artifact
on:
workflow_dispatch:
inputs:
tag:
description: Tag from where the artifact is going to be downloaded and used as base for the deploy
type: string
required: true
environment:
description: Environment that is going to be used
type: string
required: true
# Jobs to be executed
jobs:
build-deploy:
<<<<<<< HEAD
runs-on: ubuntu-latest
=======
runs-on: Professiona-Services-LATAM-Ubuntu
>>>>>>> b7d8470 (Initialize develop)
container: tnascimento013/latam_salesforcedx_industries_orgdevmodebuilds:latest
environment: ${{ inputs.environment }}
steps:
- name: Installing missing CLIs / Plugins
run: echo "y" | sf plugins install sf-orgdevmode-builds
- name: Download Artifact
<<<<<<< HEAD
uses: actions/[email protected]
=======
uses: Professiona-Services-LATAM/[email protected]
>>>>>>> b7d8470 (Initialize develop)
with:
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
version: tags/${{ inputs.tag }}
file: ${{ github.event.repository.name }}-${{ inputs.tag }}.zip
- name: Unzip artifact
run: unzip ${{ github.event.repository.name }}-${{ inputs.tag }}.zip -d outputdir/
- name: Extracting private key
working-directory: ./outputdir/
run: 'echo "${{ secrets.JWT_KEY_NONPROD }}" > server.key'
- name: Running the build & deploy
working-directory: ./outputdir/
run: sf builds deploy --buildfile manifest/buildfile.json --client-id ${{ vars.CLIENT_ID }} --instance-url ${{ vars.INSTANCE_URL }} --username ${{ vars.USERNAME }} --jwt-key-file server.key