From 4370c73b4d7e15a25b65989fa4cdbfd605306a7c Mon Sep 17 00:00:00 2001 From: paspo Date: Fri, 13 Dec 2024 12:16:51 +0100 Subject: [PATCH] drone support --- .drone.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c424812 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,51 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive + + - name: build_and_publish_tag + image: plugins/docker:linux-amd64 + settings: + force_tag: true + password: + from_secret: docker_password + registry: docker.asperti.com + repo: docker.asperti.com/paspo/webserver-nginx + context: . + dockerfile: ./Dockerfile + username: + from_secret: docker_username + tags: + - latest + - ${DRONE_TAG} + - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR} + when: + event: + - tag + + - name: build_and_publish + image: plugins/docker:linux-amd64 + settings: + force_tag: true + password: + from_secret: docker_password + registry: docker.asperti.com + repo: docker.asperti.com/paspo/webserver-nginx + context: . + dockerfile: ./Dockerfile + username: + from_secret: docker_username + tags: + - latest + when: + branch: + - main + event: + - push + - cron