forked from Amirtha2503/Developer-week_Front-end
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_spec.yaml
27 lines (26 loc) · 862 Bytes
/
build_spec.yaml
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
version: 0.1
component: build
timeoutInSeconds: 1000
shell: bash
steps:
- type: Command
name: "Install Yarn Dependencies and Build"
command: |
npm install
npm run build
- type: Command
name: "Build Docker Image"
command: |
docker build -t $REPOSITORY_URI:latest .
- type: Command
name: "Login to Docker and Push Docker Image"
command: |
docker login -u $DOC_USERNAME -p $DOC_PASSWORD
docker tag $REPOSITORY_URI:latest $DOC_USERNAME/$REPOSITORY_URI:latest
docker push $DOC_USERNAME/$REPOSITORY_URI:latest
- type: Command
name: "Login to Docker and Push Docker Image"
command: |
docker login -u $USERNAME -p $PASSWORD hyd.ocir.io
docker tag $REPOSITORY_URI:latest hyd.ocir.io/$NAMESPACE/$REPOSITORY_URI:latest
docker push hyd.ocir.io/$NAMESPACE/$REPOSITORY_URI:latest