Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI Build | ||
|
||
on: | ||
push: | ||
branches: | ||
tags: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Docker version | ||
run: docker version | ||
- name: Debug if needed | ||
run: | | ||
export DEBUG=${DEBUG:-false} | ||
if [[ "$DEBUG" == "true" ]]; then | ||
env | ||
fi | ||
env: | ||
DEBUG: ${{secrets.DEBUG}} | ||
- name: Build image | ||
run: | | ||
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}" | ||
export GIT_TAG="${GITHUB_REF/refs\/tags\//}" | ||
if [[ "$GIT_TAG" != "$GITHUB_REF" ]]; then | ||
export GIT_BRANCH=$GIT_TAG | ||
fi | ||
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}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters