mirror of
https://github.com/openziti/ziti.git
synced 2026-09-23 19:06:38 +00:00
38 lines
818 B
YAML
38 lines
818 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Git Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '~1.17.0'
|
|
|
|
- name: Install Ziti CI
|
|
uses: netfoundry/ziti-ci@v1
|
|
|
|
- name: Build and Test
|
|
run: go test ./... --tags apitests
|
|
|
|
- name: Release
|
|
env:
|
|
gh_ci_key: ${{ secrets.GH_CI_KEY }}
|
|
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')
|
|
run: |
|
|
$(go env GOPATH)/bin/ziti-ci configure-git
|
|
$(go env GOPATH)/bin/ziti-ci tag -v -f version
|