fix drone
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
10efa72ced
commit
bf2c8bf734
|
|
@ -0,0 +1,42 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: ssh
|
||||||
|
name: qudoco-be-build-deploy
|
||||||
|
|
||||||
|
server:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
user:
|
||||||
|
from_secret: ssh_user
|
||||||
|
ssh_key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: prepare repo
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
commands:
|
||||||
|
- rm -rf /opt/build/qudoco-be
|
||||||
|
- mkdir -p /opt/build/qudoco-be
|
||||||
|
- cd /opt/build/qudoco-be
|
||||||
|
- git clone http://38.47.180.165:3000/qudo-project/qudoco-be.git
|
||||||
|
|
||||||
|
- name: build image
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
commands:
|
||||||
|
- docker login 38.47.180.165:3000 -u administrator -p HarborDockerImageRep0
|
||||||
|
- cd /opt/build/qudoco-be/qudoco-be
|
||||||
|
- docker build -t 38.47.180.165:3000/qudo-project/qudoco-be:$DRONE_BRANCH .
|
||||||
|
- docker push 38.47.180.165:3000/qudo-project/qudoco-be:$DRONE_BRANCH
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
commands:
|
||||||
|
- docker pull 38.47.180.165:3000/qudo-project/qudoco-be:$DRONE_BRANCH
|
||||||
|
- docker stop qudoco-be || true
|
||||||
|
- docker rm qudoco-be || true
|
||||||
|
- docker run -dt -e TZ=Asia/Jakarta -p 8812:8800 --restart always --name qudoco-be 38.47.180.165:3000/qudo-project/qudoco-be:$DRONE_BRANCH
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -9615,7 +9615,7 @@ const docTemplate = `{
|
||||||
"Bearer": []
|
"Bearer": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "API for getting all Clients",
|
"description": "API for getting all Clients gogo",
|
||||||
"tags": [
|
"tags": [
|
||||||
"Clients"
|
"Clients"
|
||||||
],
|
],
|
||||||
|
|
@ -9705,7 +9705,7 @@ const docTemplate = `{
|
||||||
"Bearer": []
|
"Bearer": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "API for create Clients",
|
"description": "API for create Clients gogo",
|
||||||
"tags": [
|
"tags": [
|
||||||
"Clients"
|
"Clients"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -9302,7 +9302,7 @@
|
||||||
"Bearer": []
|
"Bearer": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "API for getting all Clients",
|
"description": "API for getting all Clients gogo",
|
||||||
"tags": ["Clients"],
|
"tags": ["Clients"],
|
||||||
"summary": "Get all Clients",
|
"summary": "Get all Clients",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
|
|
||||||
|
|
@ -7609,7 +7609,7 @@ paths:
|
||||||
- ClientApprovalSettings
|
- ClientApprovalSettings
|
||||||
/clients:
|
/clients:
|
||||||
get:
|
get:
|
||||||
description: API for getting all Clients
|
description: API for getting all Clients gogo
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: createdBy
|
name: createdBy
|
||||||
|
|
@ -7664,7 +7664,7 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- Clients
|
- Clients
|
||||||
post:
|
post:
|
||||||
description: API for create Clients
|
description: API for create Clients gogo
|
||||||
parameters:
|
parameters:
|
||||||
- default: Bearer <Add access token here>
|
- default: Bearer <Add access token here>
|
||||||
description: Insert your access token
|
description: Insert your access token
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue