diff --git a/.drone.yml b/.drone.yml index 87f7b5c..2a56138 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,7 +2,7 @@ kind: pipeline name: homepage steps: -- name: build sites +- name: build image: gcr.io/kaniko-project/executor:v1.9.0-debug environment: DOCKER_USERNAME: @@ -17,23 +17,25 @@ steps: - /kaniko/executor --cache --cache-dir=/cache --context . --destination "$IMAGE_BASE/angestoepselt:$TAG" --build-arg SITE=angestoepselt - /kaniko/executor --cache --cache-dir=/cache --context . --destination "$IMAGE_BASE/coderdojo:$TAG" --build-arg SITE=coderdojo -- name: deploy staging environment +- name: deploy staging image: plugins/webhook settings: urls: from_secret: portainer_stage_url depends_on: - - build sites + - build when: branch: exclude: - main -- name: deploy production environment +- name: deploy production image: plugins/webhook settings: urls: from_secret: portainer_main_url + depends_on: + - build when: branch: - main