add: docker-image-ci workflow

This commit is contained in:
peaceiris 2019-08-22 04:49:43 +09:00
parent d357978789
commit 141841e4cd
1 changed files with 21 additions and 0 deletions

21
.github/workflows/docker-image-ci.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: docker-image-ci
on:
push:
tags:
- invalid-tag
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: build
if: github.event.deleted == false
env:
DOCKER_IMAGE: ${{ github.repository }}:${{ github.sha }}
run: |
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} ||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)