mirror of
https://github.com/status-im/actions-gh-pages.git
synced 2025-01-12 22:34:40 +00:00
47 lines
927 B
YAML
47 lines
927 B
YAML
name: docker image ci
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths-ignore:
|
|
- '**.md'
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: build
|
|
env:
|
|
DOCKER_IMAGE: docker.pkg.github.com/${{ github.repository }}/action:latest
|
|
run: |
|
|
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} ||
|
|
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
|
|
|
|
shellcheck:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- name: shellcheck
|
|
run: shellcheck ./entrypoint.sh
|
|
|
|
hadolint:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- run: brew install hadolint
|
|
- run: hadolint ./Dockerfile
|