Use GitHub actions as ci (#434)

* Add blank.yml

* Fix ci

* Update blank.yml

* Update blank.yml

* Add debug

* Show environments variables

* Add test env for travis

* Update blank.yml

* Update formatting

* Add env variable GIT_BRANCH

* Change setting CI

* Add quotes for env variable value

* change on in ci
This commit is contained in:
Stas
2019-09-20 13:51:52 -05:00
committed by Umputun
parent 14f267c89e
commit 4f6c336f6c
2 changed files with 31 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Github Actions CI
on:
push:
branches:
tags:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Docker version
run: docker version
- name: Debug if needed
run: |
[[ "$DEBUG" ]] && env
env:
DEBUG: ${{secrets.DEBUG}}
- name: Build image
run: |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
docker build \
--build-arg CI="$GITHUB_WORKFLOW" \
--build-arg GIT_BRANCH=$GIT_BRANCH \
--build-arg COVERALLS_TOKEN=$COVERALLS_TOKEN \
.
env:
COVERALLS_TOKEN: ${{secrets.COVERALLS_TOKEN}}