Skip to content

feat(eventgenerator): Integrate cf api with event generator #10969

feat(eventgenerator): Integrate cf api with event generator

feat(eventgenerator): Integrate cf api with event generator #10969

name: Create Bosh Release
on:
pull_request:
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}/${{ github.ref }}"
cancel-in-progress: true
jobs:
generate-gosub:
name: ensure gosub specs are up to date
runs-on: ubuntu-latest
container:
image: ghcr.io/cloudfoundry/app-autoscaler-release-tools:main@sha256:b89f25eeea092104fb75e8e7eaf76b0dbd3156bec51ea234670ff0bdd1fc6e8b
steps:
- name: Trust my checkout
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: sync-package-specs
shell: bash
run: |
#! /usr/bin/env bash
set -eu -o pipefail
make generate-fakes
make generate-openapi-generated-clients-and-servers
make package-specs
- name: Check if there is any change
run: |
if [ "$(git status --porcelain | wc -l)" -ne 0 ]; then
git status
git diff
echo "::error::Specs are out of date, run \"make package-specs\" to update"
exit 1
fi
bosh-release:
needs: generate-gosub
name: Create Bosh Release
runs-on: ubuntu-latest
container:
image: ghcr.io/cloudfoundry/app-autoscaler-release-tools:main@sha256:b89f25eeea092104fb75e8e7eaf76b0dbd3156bec51ea234670ff0bdd1fc6e8b
steps:
- name: Trust my checkout
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run Update
shell: bash
run: |
#! /usr/bin/env bash
set -eu -o pipefail
make generate-fakes
make generate-openapi-generated-clients-and-servers
export PATH="${PATH}:/usr/local/maven/bin"
make go-mod-tidy go-mod-vendor db scheduler
- name: Build Dev Release
id: build
uses: orange-cloudfoundry/bosh-release-action@a124f0c7eda59d3070c66507bcda21196d7e0a90 # v2.1.0
- name: Compile Dev Release
uses: cloudfoundry/bosh-compile-action@main
with:
file: ${{ steps.build.outputs.file }}
args: --guess --debug