getScaledImage #469
Workflow file for this run
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: | |
pull_request: | |
types: [ opened, synchronize ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
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: Run tests | |
run: make docker-run-tests | |
- name: Publish test report | |
uses: EnricoMi/publish-unit-test-result-action/composite@v2.7 | |
if: always() | |
with: | |
files: | | |
backend/target/reports/TEST-*.xml | |
- 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@v3 | |
with: | |
status: ${{ job.status }} | |
author_name: Docker CI pipeline | |
fields: repo,message,commit,author,action,eventName,ref,workflow | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_CI }} | |
# Send message only if previous step failed | |
if: failure() |