fix version for release builds (#208)

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
This commit is contained in:
Zbynek Roubalik 2020-11-05 15:59:47 +01:00 committed by GitHub
parent 29ca07768c
commit c036a77d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -9,11 +9,21 @@ jobs:
build-and-publish: build-and-publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# Standard build tasks # Checkout and test
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
- name: Test - name: Test
run: make test run: make test
# Create a release, or update the release PR
- uses: GoogleCloudPlatform/release-please-action@v2.5.5
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
bump-minor-pre-major: true
# Standard build tasks
- name: Build - name: Build
run: make cross-platform run: make cross-platform
- name: Lint - name: Lint
@ -46,14 +56,6 @@ jobs:
docker login -u "$USER" -p "$PASS" quay.io docker login -u "$USER" -p "$PASS" quay.io
make push && make latest make push && make latest
# Create a release, or update the release PR
- uses: GoogleCloudPlatform/release-please-action@v2.5.5
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
bump-minor-pre-major: true
# The following steps are only executed if this is a release # The following steps are only executed if this is a release
- name: Compress Binaries - name: Compress Binaries
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}