forked from AdanRuiz/oci_devops_project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_spec.yaml
More file actions
38 lines (29 loc) · 980 Bytes
/
Copy pathbuild_spec.yaml
File metadata and controls
38 lines (29 loc) · 980 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
30
31
32
33
34
35
version: 0.1
component: build
timeoutInSeconds: 600
shell: bash
env:
variables:
JAVA_HOME: /usr/lib64/graalvm/graalvm-java22
exportedVariables:
- BuildServiceDemoVersion
steps:
- type: Command
name: "Install GraalVM Enterprise 22.x Native Image for Java22"
command: yum -y install graalvm-22-jdk.x86_64;
ls /usr/lib64/graalvm/
- type: Command
name: "Set PATH Variable"
command: export PATH=$JAVA_HOME/bin:$PATH
- type: Command
name: "Docker Login"
command: cd MtdrSpring;
oci os object get --bucket-name reacttodo-ysmiy --name deployment_config.tgz --file deployment_config.tgz;
tar -xzvf deployment_config.tgz;
source env.sh;
cat at.cfg | docker login -u "axyyzvpljivg/adan0001@gmail.com" --password-stdin phx.ocir.io
- type: Command
name: "Build"
command: cd MtdrSpring;
source env.sh;
(cd backend;source build.sh)