diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000000..6c65ca9caa --- /dev/null +++ b/.github/workflows/blank.yml @@ -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}} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ae20f37d2f..b4cc19b54a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM umputun/baseimage:buildgo-latest as build-backend ARG COVERALLS_TOKEN ARG CI +ARG GIT_BRANCH ARG TRAVIS ARG TRAVIS_BRANCH ARG TRAVIS_COMMIT