-
Notifications
You must be signed in to change notification settings - Fork 7
/
bitrise.yml
63 lines (58 loc) · 2.04 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
---
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
trigger_map:
# - push_branch: master
# workflow: primary
- push_branch: bitrise*
workflow: primary
# - pull_request_source_branch: "*"
# workflow: primary
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: standard
# docker_image: homebrew/ubuntu20.04:3.2.8
workflows:
primary:
envs:
- YP_CI_BREW_INSTALL: minimal
opts:
is_expand: false
- YP_LOG_BOOTSTRAP: "true"
opts:
is_expand: false
steps:
- git-clone@6:
inputs:
- clone_depth: "1"
- script@1:
inputs:
- content: |
#!/usr/bin/env bash
set -x
# asdf installed as root, issues for the bitrise user
rm -rf $ASDF_DIR
unset ASDF_DIR
chown -R $(id -u):$(id -g) ${BITRISE_SOURCE_DIR}
${BITRISE_SOURCE_DIR}/bin/linux-adduser --disabled-password bitrise
${BITRISE_SOURCE_DIR}/bin/linux-adduser2group bitrise sudo
echo "bitrise ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
echo "Defaults:bitrise !env_reset" >> /etc/sudoers
echo "Defaults:bitrise !secure_path" >> /etc/sudoers
chown -R bitrise:bitrise ${BITRISE_SOURCE_DIR}
set +x
set -euo pipefail
cd ${BITRISE_SOURCE_DIR}
su -c "bash ci/pipeline.script.sh" bitrise
# NOTE interesting that each key under 'steps' is actually a "<type>::<url>::<path>"
# git::git@domain/repo.git::foo/bar@v2
# git@domain/repo.git::foo/bar@v2 since type=git by default
# ::foo/bar@v2 if default_step_lib_source is given
# foo/bar@v2 if default_step_lib_source is given
# path::./foo/bar
# path::/foo/bar
# path::~/foo/bar or path::$HOME/foo/bar
# https://github.com/bitrise-io/bitrise/blob/f88e7da5bc11283a257cfabb11955cdce325b4f2
# /_examples/tutorials/steps-and-workflows/bitrise.yml