Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub actions as ci #434

Merged
merged 13 commits into from
Sep 20, 2019
Merged
27 changes: 27 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Github Actions CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Docker version
run: docker version
- name: Debug if needed
run: |
[[ "$DEBUG" ]] && env
umputun marked this conversation as resolved.
Show resolved Hide resolved
env:
DEBUG: ${{secrets.DEBUG}}
- name: Build image
run: |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
umputun marked this conversation as resolved.
Show resolved Hide resolved

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}}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM umputun/baseimage:buildgo-latest as build-backend

ARG COVERALLS_TOKEN
ARG CI
ARG GIT_BRANCH
umputun marked this conversation as resolved.
Show resolved Hide resolved
ARG TRAVIS
ARG TRAVIS_BRANCH
ARG TRAVIS_COMMIT
Expand Down