diff --git a/.drone.jsonnet b/.drone.jsonnet new file mode 100644 index 0000000..8caff16 --- /dev/null +++ b/.drone.jsonnet @@ -0,0 +1,42 @@ +local Pipeline(mariadb_version) = { + kind: "pipeline", + type: "docker", + name: "maria-" + mariadb_version, + steps: [ + { + name: "build_and_publish_" + mariadb_version, + image: "plugins/docker:linux-amd64", + pull: "always", + settings: { + dockerfile: "Dockerfile", + build_args: { + MARIA_VERSION: mariadb_version, + }, + registry: "docker.asperti.com", + repo: "docker.asperti.com/paspo/mariadb-backup-slave", + username: { + from_secret: "docker_username", + }, + password: { + from_secret: "docker_password", + }, + tags: [ "latest-" + mariadb_version, "maria-" + mariadb_version ], + auto_tag: false, + force_tag: true, + daemon_off: false, + } + } + ], + trigger: { + event: ['tags'], + } +}; + +[ + Pipeline("10.7"), + Pipeline("10.6"), + Pipeline("10.5"), + Pipeline("10.4"), + Pipeline("10.3"), + Pipeline("10.2"), +] \ No newline at end of file diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 6717c78..0000000 --- a/.drone.yml +++ /dev/null @@ -1,178 +0,0 @@ -kind: pipeline -type: docker -name: maria-10.7 - -steps: - - name: build_and_publish_10_7 - image: plugins/docker:linux-amd64 - pull: always - settings: - dockerfile: Dockerfile - build_args: - - MARIA_VERSION=10.7 - registry: docker.asperti.com - repo: docker.asperti.com/paspo/mariadb-backup-slave - username: - from_secret: docker_username - password: - from_secret: docker_password - tags: - - latest-10.7 - - maria-10.7 - auto_tag: false - force_tag: true - daemon_off: false - -trigger: - event: - - tag - ---- -kind: pipeline -type: docker -name: maria-10.6 - -steps: - - name: build_and_publish_10_6 - image: plugins/docker:linux-amd64 - pull: always - settings: - dockerfile: Dockerfile - build_args: - - MARIA_VERSION=10.6 - registry: docker.asperti.com - repo: docker.asperti.com/paspo/mariadb-backup-slave - username: - from_secret: docker_username - password: - from_secret: docker_password - tags: - - latest-10.6 - - maria-10.6 - auto_tag: false - force_tag: true - daemon_off: false - -trigger: - event: - - tag - ---- -kind: pipeline -type: docker -name: maria-10.5 - -steps: - - name: build_and_publish_10_5 - image: plugins/docker:linux-amd64 - pull: always - settings: - dockerfile: Dockerfile - build_args: - - MARIA_VERSION=10.5 - registry: docker.asperti.com - repo: docker.asperti.com/paspo/mariadb-backup-slave - username: - from_secret: docker_username - password: - from_secret: docker_password - tags: - - latest-10.5 - - maria-10.5 - auto_tag: false - force_tag: true - daemon_off: false - -trigger: - event: - - tag - ---- -kind: pipeline -type: docker -name: maria-10.4 - -steps: - - name: build_and_publish_10_4 - image: plugins/docker:linux-amd64 - pull: always - settings: - dockerfile: Dockerfile - build_args: - - MARIA_VERSION=10.4 - registry: docker.asperti.com - repo: docker.asperti.com/paspo/mariadb-backup-slave - username: - from_secret: docker_username - password: - from_secret: docker_password - tags: - - latest-10.4 - - maria-10.4 - auto_tag: false - force_tag: true - daemon_off: false - -trigger: - event: - - tag - ---- -kind: pipeline -type: docker -name: maria-10.3 - -steps: - - name: build_and_publish_10_3 - image: plugins/docker:linux-amd64 - pull: always - settings: - dockerfile: Dockerfile - build_args: - - MARIA_VERSION=10.3 - registry: docker.asperti.com - repo: docker.asperti.com/paspo/mariadb-backup-slave - username: - from_secret: docker_username - password: - from_secret: docker_password - tags: - - latest-10.3 - - maria-10.3 - auto_tag: false - force_tag: true - daemon_off: false - -trigger: - event: - - tag - ---- -kind: pipeline -type: docker -name: maria-10.2 - -steps: - - name: build_and_publish_10_2 - image: plugins/docker:linux-amd64 - pull: always - settings: - dockerfile: Dockerfile - build_args: - - MARIA_VERSION=10.2 - registry: docker.asperti.com - repo: docker.asperti.com/paspo/mariadb-backup-slave - username: - from_secret: docker_username - password: - from_secret: docker_password - tags: - - latest-10.2 - - maria-10.2 - auto_tag: false - force_tag: true - daemon_off: false - -trigger: - event: - - tag \ No newline at end of file