kind: pipeline type: docker name: docker build volumes: - name: dockersock host: path: /var/run/docker.sock trigger: event: - push steps: - name: docker build image: docker:dind volumes: - name: dockersock path: /var/run/docker.sock commands: - apk add make git - docker login -u adamveld12 -p $${DOCKER_PASSWORD} - make vdhsn/gopherhole - docker push -a vdhsn/gopherhole environment: DOCKER_PASSWORD: from_secret: DOCKER_PASS - name: post update image: plugins/matrix settings: homeserver: https://matrix.vdhsn.com password: from_secret: MATRIX_PASSWORD roomid: UwldmBPwrgpoXYozVG:matrix.vdhsn.com template: "Docker image build and push from {{ build.branch }} {{ build.status }}. See @ [{{ repo.Owner }}/{{ repo.Name }}#{{ truncate build.commit 8 }}]({{ build.link }}). Triggered by {{ build.author }}" username: from_secret: MATRIX_USER failure: ignore when: status: - failure - success depends_on: - docker build