Merge remote-tracking branch 'origin/main' into alertmanager-interface

This commit is contained in:
cubicroot 2022-04-19 18:36:01 +02:00
commit d1002b0488
3 changed files with 16 additions and 20 deletions

View file

@ -2,32 +2,23 @@ name: Documentation
on:
push:
paths-ignore:
- '**.md'
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.yaml'
- '**.json'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
env:
PB_BUILD_VERSION: unknown # Needed for using Make targets.
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
jobs:
build_documentation:
name: Build documentation
runs-on: ubuntu-latest
permissions:
contents: read
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
uses: actions/checkout@v3
- name: Export GOBIN
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16

View file

@ -11,10 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed to describe git ref during build.
- name: Export GOBIN
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
@ -81,10 +83,10 @@ jobs:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Export GOBIN
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16

View file

@ -9,16 +9,19 @@ on:
- '!v[0-9]+.[0-9]+.[0-9]+'
pull_request:
env:
PB_BUILD_VERSION: pipeline-${{ github.sha }}
jobs:
test_build:
name: Test and build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Export GOBIN
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16