Skip to content

bug fix for missing comps from release manifest #22

bug fix for missing comps from release manifest

bug fix for missing comps from release manifest #22

Workflow file for this run

name: build
on:
workflow_call: {}
push:
branches:
- main
- "v*.*.x"
jobs:
setup:
name: Setup
runs-on: ubuntu-22.04
outputs:
components: ${{ steps.set-matrix.outputs.components }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- id: set-matrix
name: Output component builds
run: |
echo "components=$(ls ./components/ | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
publish-docs:
name: Publish docs
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'
permissions:
contents: write
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pipenv
- name: Cache tools
uses: actions/cache@v3
with:
path: ./tools
key: doc-tools
- name: Generate docs
run: pip install pipenv && make docs
- name: Upload docs
uses: actions/upload-pages-artifact@v1
with:
path: site/
- name: Publish docs
uses: actions/deploy-pages@v2
publish-component:
name: Publish component
runs-on: ubuntu-22.04
needs: setup
strategy:
matrix:
component: ${{ fromJSON(needs.setup.outputs.components) }}
permissions:
contents: read
packages: write
env:
CONTAINER_REGISTRY: ghcr.io/${{ github.repository_owner }}
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.CONTAINER_REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: "3.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Cache tools
uses: actions/cache@v3
with:
path: ./tools
key: build-tools
- name: Build and push component
run: make image COMPONENT=${{ matrix.component }} SKIP_GENERATE=true COMPRESS=true PUSH=true