little update
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
a0af655a56
commit
460a4d76e0
30
.drone.yml
30
.drone.yml
|
|
@ -15,28 +15,28 @@ steps:
|
|||
when:
|
||||
branch:
|
||||
- main
|
||||
commands:
|
||||
- rm -rf /opt/build/narasi-ahli-be
|
||||
- mkdir -p /opt/build/narasi-ahli-be
|
||||
- cd /opt/build/narasi-ahli-be
|
||||
- git clone http://38.47.180.165:3000/narasi-ahli/narasiahli-be.git
|
||||
commands:
|
||||
- rm -rf /opt/build/narasi-ahli-be
|
||||
- mkdir -p /opt/build/narasi-ahli-be
|
||||
- cd /opt/build/narasi-ahli-be
|
||||
- git clone http://38.47.180.165:3000/narasi-ahli/narasiahli-be.git
|
||||
|
||||
- name: build image
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
commands:
|
||||
- docker login 38.47.180.165:3000 -u administrator -p HarborDockerImageRep0
|
||||
- cd /opt/build/narasi-ahli-be/narasiahli-be
|
||||
- docker build -t 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH .
|
||||
- docker push 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH
|
||||
commands:
|
||||
- docker login 38.47.180.165:3000 -u administrator -p HarborDockerImageRep0
|
||||
- cd /opt/build/narasi-ahli-be/narasiahli-be
|
||||
- docker build -t 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH .
|
||||
- docker push 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH
|
||||
|
||||
- name: deploy
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
commands:
|
||||
- docker pull 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH
|
||||
- docker stop narasi-ahli-be || true
|
||||
- docker rm narasi-ahli-be || true
|
||||
- docker run -dt -e TZ=Asia/Jakarta -p 8801:8800 --restart always --name narasi-ahli-be 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH
|
||||
commands:
|
||||
- docker pull 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH
|
||||
- docker stop narasi-ahli-be || true
|
||||
- docker rm narasi-ahli-be || true
|
||||
- docker run -dt -e TZ=Asia/Jakarta -p 8801:8800 --restart always --name narasi-ahli-be 38.47.180.165:3000/narasi-ahli/narasi-ahli-be:$DRONE_BRANCH
|
||||
|
|
|
|||
Loading…
Reference in New Issue