Lithium 3.6.0 #334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
- master | |
- staging | |
pull_request: | |
jobs: | |
docker-build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
# setup docker actions https://github.com/docker/build-push-action | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build image | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
# https://github.com/docker/build-push-action/issues/220 | |
context: . | |
tags: wire/ci-test-image | |
platforms: linux/amd64 | |
push: false | |
# Send webhook to Wire using Slack Bot | |
- name: Webhook to Wire | |
uses: 8398a7/action-slack@v2 | |
with: | |
status: ${{ job.status }} | |
author_name: Docker CI pipeline | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_CI }} | |
# Send message only if previous step failed | |
if: failure() |