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:
@@ -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}}
|
||||
Reference in New Issue
Block a user