--- kind: pipeline name: test platform: os: linux arch: amd64 steps: - name: markdownlint image: thegeeklab/markdownlint-cli commands: - markdownlint 'README.md' trigger: ref: - refs/heads/main - refs/tags/** - refs/pull/** --- kind: pipeline name: build-container-rh7 platform: os: linux arch: amd64 steps: - name: dryrun pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.rh7 dry_run: true repo: thegeeklab/${DRONE_REPO_NAME} when: ref: - refs/pull/** depends_on: - tags - name: publish-dockerhub pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.rh7 password: from_secret: docker_password repo: thegeeklab/${DRONE_REPO_NAME} username: from_secret: docker_username when: ref: - refs/heads/main - refs/tags/** depends_on: - tags - name: publish-quay pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.rh7 password: from_secret: quay_password registry: quay.io repo: quay.io/thegeeklab/${DRONE_REPO_NAME} username: from_secret: quay_username when: ref: - refs/heads/main - refs/tags/** depends_on: - tags trigger: ref: - refs/heads/main - refs/tags/** - refs/pull/** depends_on: - test --- kind: pipeline name: build-container-rh8 platform: os: linux arch: amd64 steps: - name: dryrun pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.rh8 dry_run: true repo: thegeeklab/${DRONE_REPO_NAME} when: ref: - refs/pull/** depends_on: - tags - name: publish-dockerhub pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.rh8 password: from_secret: docker_password repo: thegeeklab/${DRONE_REPO_NAME} username: from_secret: docker_username when: ref: - refs/heads/main - refs/tags/** depends_on: - tags - name: publish-quay pull: always image: thegeeklab/drone-docker-buildx:20 settings: dockerfile: Dockerfile.rh8 password: from_secret: quay_password registry: quay.io repo: quay.io/thegeeklab/${DRONE_REPO_NAME} username: from_secret: quay_username when: ref: - refs/heads/main - refs/tags/** depends_on: - tags trigger: ref: - refs/heads/main - refs/tags/** - refs/pull/** depends_on: - test --- kind: pipeline name: notifications platform: os: linux arch: amd64 steps: - name: manifest-dockerhub image: plugins/manifest settings: ignore_missing: true password: from_secret: docker_password spec: manifest.tmpl username: from_secret: docker_username when: status: - success - name: manifest-quay image: plugins/manifest settings: ignore_missing: true password: from_secret: quay_password spec: manifest-quay.tmpl username: from_secret: quay_username when: status: - success - name: pushrm-dockerhub pull: always image: chko/docker-pushrm:1 environment: DOCKER_PASS: from_secret: docker_password DOCKER_USER: from_secret: docker_username PUSHRM_FILE: README.md PUSHRM_SHORT: Rootless Alpine base image PUSHRM_TARGET: thegeeklab/${DRONE_REPO_NAME} when: status: - success - name: pushrm-quay pull: always image: chko/docker-pushrm:1 environment: APIKEY__QUAY_IO: from_secret: quay_token PUSHRM_FILE: README.md PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME} when: status: - success - name: matrix image: thegeeklab/drone-matrix settings: homeserver: from_secret: matrix_homeserver password: from_secret: matrix_password roomid: from_secret: matrix_roomid template: "Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}
Message: {{ commit.Message.Title }}" username: from_secret: matrix_username when: status: - success - failure trigger: ref: - refs/heads/main - refs/tags/** status: - success - failure depends_on: - build-container-amd64 - build-container-arm64 - build-container-arm --- kind: signature hmac: 2b3a8b24f8cd073563d652dbad1ca02eb0cc7a41d666b0891bf7f5c268214362 ...