Refactor build and push Docker image step in .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -2,13 +2,6 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
|
||||||
image: docker
|
|
||||||
commands:
|
|
||||||
- docker build -t cdn-app-insider:latest .
|
|
||||||
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
|
||||||
- docker push cdn-app-insider:latest
|
|
||||||
|
|
||||||
- name: build-node
|
- name: build-node
|
||||||
image: node:latest
|
image: node:latest
|
||||||
environment:
|
environment:
|
||||||
@@ -20,13 +13,13 @@ steps:
|
|||||||
- npm install
|
- npm install
|
||||||
- node -v
|
- node -v
|
||||||
|
|
||||||
- name: create-docker-image-insider
|
- name: build-and-push-docker-image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: git.dinawo.fr
|
repo: cdn-app-insider
|
||||||
repo: git.dinawo.fr/drone/cdn-app-insider
|
|
||||||
tags: latest
|
tags: latest
|
||||||
|
dockerfile: Dockerfile
|
||||||
username:
|
username:
|
||||||
from_secret: git_username
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
password:
|
||||||
from_secret: git_password
|
from_secret: DOCKER_PASSWORD
|
||||||
Reference in New Issue
Block a user