kind: pipeline name: default steps: - name: build image: plugins/docker:linux-amd64 pull: always settings: dockerfile: Dockerfile daemon_off: false dry_run: true repo: docker.asperti.com/paspo/mariadb-backup-slave when: event: exclude: - tag - name: build_and_publish image: plugins/docker:linux-amd64 pull: always environment: MARIA_VERSION: 10.1 settings: dockerfile: Dockerfile auto_tag: true force_tag: true daemon_off: false password: from_secret: docker_password registry: docker.asperti.com repo: docker.asperti.com/paspo/mariadb-backup-slave tags: - ${MARIA_VERSION} username: from_secret: docker_username when: event: - tag - name: build_and_publish image: plugins/docker:linux-amd64 pull: always environment: MARIA_VERSION: 10.2 settings: dockerfile: Dockerfile auto_tag: true force_tag: true daemon_off: false password: from_secret: docker_password registry: docker.asperti.com repo: docker.asperti.com/paspo/mariadb-backup-slave tags: - ${MARIA_VERSION} username: from_secret: docker_username when: event: - tag - name: build_and_publish image: plugins/docker:linux-amd64 pull: always environment: MARIA_VERSION: 10.3 settings: dockerfile: Dockerfile auto_tag: true force_tag: true daemon_off: false password: from_secret: docker_password registry: docker.asperti.com repo: docker.asperti.com/paspo/mariadb-backup-slave tags: - latest - ${MARIA_VERSION} username: from_secret: docker_username when: event: - tag