Skip to content

upd makefile

upd makefile #110

Workflow file for this run

name: build
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- main
delete:
permissions:
contents: read
pull-requests: write
env:
VAULT_ADDR: https://vault.eng.aserto.com/
BUF_VERSION: "1.52.1"
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Read Configuration
uses: hashicorp/vault-action@v3
id: vault
with:
url: ${{ env.VAULT_ADDR }}
token: ${{ secrets.VAULT_TOKEN }}
secrets: |
kv/data/github "USERNAME" | GH_USERNAME;
kv/data/github "READ_WRITE_TOKEN" | GH_TOKEN;
kv/data/buf.build "ASERTO_BUF_TOKEN" | ASERTO_BUF_TOKEN;
-
name: Buf Build
uses: bufbuild/buf-action@v1
with:
version: ${{ env.BUF_VERSION }}
token: ${{ steps.vault.outputs.ASERTO_BUF_TOKEN}}
github_token: ${{ steps.vault.outputs.GH_TOKEN}}
push_disable_create: true
trigger-dispatches:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
cfg:
- { project: go-authorizer }
- { project: node-authorizer }
- { project: dotnet-authorizer }
- { project: ruby-authorizer }
- { project: python-authorizer }
- { project: openapi-authorizer }
- { project: java-authorizer }
name: Generate on ${{ matrix.cfg.project }}
steps:
-
name: Read Configuration
uses: hashicorp/vault-action@v3
id: vault
with:
url: ${{ env.VAULT_ADDR }}
token: ${{ secrets.VAULT_TOKEN }}
secrets: |
kv/data/github "USERNAME" | GH_USERNAME;
kv/data/github "READ_WRITE_TOKEN" | GH_TOKEN;
-
name: Trigger dispatch
run: |
curl -XPOST -u "${GH_USERNAME}:${GH_TOKEN}" \
-H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" \
https://api.github.com/repos/aserto-dev/${{ matrix.cfg.project }}/actions/workflows/ci.yaml/dispatches --data '{"ref": "main", "inputs": {"proto_ref": "${{ github.ref }}", "proto_sha": "${{ github.sha }}" }}'