Skip to content

Commit

Permalink
Merge pull request #5 from vbehar/fix-ci
Browse files Browse the repository at this point in the history
fix: CI & release
  • Loading branch information
vbehar authored Jan 18, 2022
2 parents bb72340 + 2db509e commit 931b945
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 81 deletions.
12 changes: 0 additions & 12 deletions .github/actions/autotag/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions .github/actions/autotag/README.md

This file was deleted.

31 changes: 0 additions & 31 deletions .github/actions/autotag/action.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/actions/autotag/entrypoint.sh

This file was deleted.

15 changes: 8 additions & 7 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,31 @@ on: [pull_request]

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow

- name: Setup Go
uses: actions/setup-go@v2-beta
uses: actions/setup-go@v2.1.3
with:
go-version: '1.14'
go-version: '1.17'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v2.7.0
with:
version: v0.171.0
args: release --snapshot --skip-publish --rm-dist

unit-tests:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2-beta
uses: actions/setup-go@v2.1.3
with:
go-version: '1.14'
go-version: '1.17'
- name: Run Unit Tests
run: go test -v ./...
env:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ on:

jobs:
release:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow

- name: Setup Go
uses: actions/setup-go@v2-beta
uses: actions/setup-go@v2.1.3
with:
go-version: '1.14'
go-version: '1.17'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v2.7.0
with:
version: v0.171.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 6 additions & 7 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ on:

jobs:
tag:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- uses: fregante/setup-git-user@v1

- name: Tag
uses: ./.github/actions/autotag/
- name: Push
uses: ad-m/github-push-action@master
- name: tag
uses: jenkins-x-plugins/jx-release-version@v2.4.13
with:
github_token: ${{ secrets.GH_TOKEN }}
tags: true
tag: true
github-token: ${{ secrets.GH_TOKEN }}

0 comments on commit 931b945

Please sign in to comment.