Version15 #2
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: Test Docker build | |
on: [pull_request] | |
jobs: | |
dockerlint: | |
name: Dockerfile linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: hadolint | |
run: docker run --rm -i hadolint/hadolint < nightscout/Dockerfile | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
build-amd64: | |
name: Build amd64 image | |
runs-on: ubuntu-latest | |
needs: [dockerlint, markdown-link-check] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Patch files | |
uses: onlyutkarsh/[email protected] | |
with: | |
files: | | |
nightscout/config.json | |
patch-syntax: | | |
= /version => "${{ github.run_number }}" | |
- name: build amd64 image | |
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t nightscout --amd64 --test | |
build-aarch64: | |
name: Build aarch64 image | |
runs-on: ubuntu-latest | |
needs: [dockerlint, markdown-link-check] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Patch files | |
uses: onlyutkarsh/[email protected] | |
with: | |
files: | | |
nightscout/config.json | |
patch-syntax: | | |
= /version => "${{ github.run_number }}" | |
- name: build aarch64 image | |
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t nightscout --aarch64 --test |