forked from bitrise-io/android-demo-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
106 lines (97 loc) · 3.01 KB
/
bitrise.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
format_version: '11'
#testtrigger1
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: jacklubbs-repo-stored-yml
pipeline: pipeline-runif
- pull_request_source_branch: "*"
workflow: prepare-workflow
app:
envs:
- PROJECT_LOCATION: "."
- VARIANT: ''
- MODULE: "p_test2&3"
- GRADLEW_PATH: "./gradlew"
pipelines:
pipeline-runif:
stages:
- stage-1: {}
- stage-2: {}
stages:
stage-1:
workflows:
- prepare-workflow: {}
stage-2:
workflows:
- parallel-test1:
run_if: '{{ getenv "MODULE" | eq "p_test1" }}'
- parallel-test2:
run_if: '{{ getenv "MODULE" | eq "p_test2&3" }}'
- parallel-test3:
run_if: '{{ getenv "MODULE" | eq "p_test2&3" }}'
workflows:
parallel-test1:
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: elite
description: |
## How to get a signed APK, correct
This workflow contains the **Sign APK** step. To sign your APK all you have to do is to:
1. Click on **Code Signing** tab
1. Find the **ANDROID KEYSTORE FILE** section
1. Click or drop your file on the upload file field
1. Fill the displayed 3 input fields:
1. **Keystore password**
1. **Keystore alias**
1. **Private key password**
1. Click on **[Save metadata]** button
That's it! From now on, **Sign APK** step will receive your uploaded files.
## To run this workflow
If you want to run this workflow manually:
1. Open the app's build list page
2. Click on **[Start/Schedule a Build]** button
3. Select **parallel-test1** in **Workflow** dropdown input
4. Click **[Start Build]** button
Or if you need this workflow to be started by a GIT event:
1. Click on **Triggers** tab
2. Setup your desired event (push/tag/pull) and select **parallel-test1** workflow
3. Click on **[Done]** and then **[Save]** buttons
The next change in your repository that matches any of your trigger map event will start **parallel-test1** workflow.
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
parallel-test2:
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: elite-xl
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
parallel-test3:
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: elite-xl
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
prepare-workflow:
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: elite-xl
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: elite-xl