diff --git a/.drone.yml b/.drone.yml index f6deb0d..974ad8a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,23 +1,36 @@ +kind: pipeline +name: default -pipeline: - - build: - image: docker - commands: - - docker build --rm -t libreschool-automation/ubuntu-build:18.04 . - volumes: - - /var/run/docker.sock:/var/run/docker.sock +steps: + - name: build + image: plugins/docker:linux-amd64 + pull: always + settings: + daemon_off: false + dry_run: true + repo: registry.libreschool.org/libreschool-automation/ubuntu-build + tags: + - latest + - 18.04 when: - event: tag - -# build_and_publish: - # no publish at this time -# image: plugins/docker -# pull: true -# secrets: [ docker_username, docker_password ] -# repo: libreschool-automation/ubuntu-build -# auto_tag: true -# auto_tag_suffix: linux-amd64 -# dockerfile: Dockerfile -# when: -# event: [ push, tag ] + event: + exclude: + - tag + + - name: build_and_publish + image: plugins/docker:linux-amd64 + pull: always + settings: + daemon_off: false + password: + from_secret: docker_password + registry: registry.libreschool.org + repo: registry.libreschool.org/libreschool-automation/ubuntu-build + tags: + - latest + - 18.04 + username: + from_secret: docker_username + when: + event: + - tag