forked from JasonHaley/hello-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_spec_mirror.yaml
More file actions
29 lines (28 loc) · 893 Bytes
/
build_spec_mirror.yaml
File metadata and controls
29 lines (28 loc) · 893 Bytes
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
version: 0.1
component: build
timeoutInSeconds: 6000
shell: bash
steps:
- type: Command
name: "Download OCI"
timeoutInSeconds: 400
command: |
oci -v
curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh --output ${OCI_WORKSPACE_DIR}/install_oci.sh
- type: Command
name: "Remove existing OCI install dir"
timeoutInSeconds: 60
command: |
rm -r /root/lib/oracle-cli
- type: Command
name: "Update OCI CLI"
timeoutInSeconds: 400
command: |
chmod +x ${OCI_WORKSPACE_DIR}/install_oci.sh
${OCI_WORKSPACE_DIR}/install_oci.sh --accept-all-defaults
- type: Command
name: "Mirror remote repo"
timeoutInSeconds: 400
command: |
oci -v
oci devops repository mirror --repository-id ocid1.devopsrepository.oc1.phx.amaaaaaayat6pyaah6x6oynezgenfvpj4qwcb4fdpy2jzvjkmr6rizuoovrq