mirror of
https://github.com/status-im/actions-gh-pages.git
synced 2025-03-03 06:00:33 +00:00
* feat: Add emptyCommits option (@kingofzeal) * docs: Update README about emptyCommits option (@kingofzeal) * gha: Update trigger of docker image ci workflow (@peaceiris) Close #21
34 lines
718 B
YAML
34 lines
718 B
YAML
name: docker image ci
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- 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@master
|
|
- name: shellcheck
|
|
run: shellcheck ./entrypoint.sh
|
|
|
|
hadolint:
|
|
runs-on: macOS-10.14
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: hadolint
|
|
run: |
|
|
brew install hadolint
|
|
hadolint ./Dockerfile
|