Skip to content

Commit

Permalink
Merge pull request #2491 from owncloud/bugfix/order-docker-steps
Browse files Browse the repository at this point in the history
Fix steps order on release/publish
  • Loading branch information
DeepDiver1975 authored Nov 19, 2019
2 parents a23f2ef + 2072686 commit 2eb63ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .drone.starlark
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ def build():
'path': config['app']
},
'steps':
buildDockerImage() +
installNPM() +
buildRelease() +
deployStaging(),
deployStaging() +
buildDockerImage(),
'services':
dockerInDockerService(),
'depends_on': [],
Expand Down
26 changes: 13 additions & 13 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4958,19 +4958,6 @@ workspace:
path: phoenix

steps:
- name: build-docker-image
pull: always
image: toolhippie/docker:latest
commands:
- docker build -t owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} .
- docker tag owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} owncloud/phoenix:latest
- docker push owncloud/phoenix:latest
environment:
DOCKER_HOST: tcp://docker:2375
when:
event:
- push

- name: npm-install
pull: always
image: owncloudci/php:7.1
Expand Down Expand Up @@ -5012,6 +4999,19 @@ steps:
event:
- push

- name: build-docker-image
pull: always
image: toolhippie/docker:latest
commands:
- docker build -t owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} .
- docker tag owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} owncloud/phoenix:latest
- docker push owncloud/phoenix:latest
environment:
DOCKER_HOST: tcp://docker:2375
when:
event:
- push

services:
- name: docker
pull: if-not-exists
Expand Down

0 comments on commit 2eb63ce

Please sign in to comment.