chore: upgrade actions/checkout to v2
This commit is contained in:
parent
fb16fe135c
commit
26c5cb82dd
|
@ -16,31 +16,25 @@ jobs:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
env:
|
env:
|
||||||
DOCKER_IMAGE: docker.pkg.github.com/${{ github.repository }}/action:latest
|
DOCKER_IMAGE: docker.pkg.github.com/${{ github.repository }}/action:latest
|
||||||
run: |
|
run: |
|
||||||
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} ||
|
docker build . --file Dockerfile --tag ${DOCKER_IMAGE}
|
||||||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
|
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- name: shellcheck
|
- name: shellcheck
|
||||||
run: shellcheck ./entrypoint.sh
|
run: shellcheck ./entrypoint.sh
|
||||||
|
|
||||||
hadolint:
|
hadolint:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
- run: brew install hadolint
|
- run: brew install hadolint
|
||||||
- run: hadolint ./Dockerfile
|
- run: hadolint ./Dockerfile
|
||||||
|
|
Loading…
Reference in New Issue