From ae5ea50ec08fcf4e59ffd1dac48f2d6194fa2a92 Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Tue, 2 Aug 2022 10:57:41 +0200 Subject: [PATCH] Try fix publish CI --- .drone.yml | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index c215b3f..667b082 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,22 @@ steps: path: /var/run/docker.sock commands: - docker-compose build frontend - - name: publish + +volumes: + - name: dockersock + host: + path: /var/run/docker.sock + +--- +kind: pipeline +type: docker +name: push-to-hub + +workspace: + path: ./docker/schwarzesbrett + +steps: + - name: docker image: plugins/docker settings: username: @@ -20,15 +35,12 @@ steps: from_secret: docker_password repo: grimmigerfuchs/schwarzesbrett tags: latest - context: ./docker/schwarzesbrett - volumes: - - name: dockersock - path: /var/run/docker.sock - when: - branch: - - main -volumes: - - name: dockersock - host: - path: /var/run/docker.sock +depends_on: + - frontend + +trigger: + branch: + - main + event: + - push