mirror of
https://github.com/openziti/ziti.git
synced 2026-09-25 11:57:28 +00:00
42 lines
959 B
YAML
42 lines
959 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency: main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Git Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.19.x'
|
|
|
|
- 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 }}
|
|
ziti_ci_gpg_key: ${{ secrets.ZITI_CI_GPG_KEY }}
|
|
ziti_ci_gpg_key_id: ${{ secrets.ZITI_CI_GPG_KEY_ID }}
|
|
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
|