Skip to content

Commit

Permalink
Polishing GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Jul 19, 2020
1 parent b647312 commit 18f5d4e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-test.yml
Expand Up @@ -3,10 +3,11 @@ name: Build & test
on:
push:
branches:
trunk
- trunk
- upgrade-ubuntu-bionic-20200639
pull_request:
branches:
trunk
- trunk

jobs:
build-and-test:
Expand All @@ -29,6 +30,12 @@ jobs:
run: echo "::set-env name=BRANCH::$(echo ${GITHUB_REF##*/})"
- name: Output branch name
run: echo ${BRANCH}
- name: Output GitHub Head ref
if: github.event_name == 'pull_request'
run: echo ${{ github.head_ref }}
- name: Output GitHub ref
if: github.event_name == 'push'
run: echo ${{ github.ref }}
- name: Build Docker images
run: VERSION=${BRANCH} make build
- name: Test Docker images
Expand Down

0 comments on commit 18f5d4e

Please sign in to comment.