-
Notifications
You must be signed in to change notification settings - Fork 52
68 lines (60 loc) · 1.93 KB
/
bosh-release-checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
steps:
- name: Trust my checkout
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- uses: actions/checkout@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
steps:
- name: Trust my checkout
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- uses: actions/checkout@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/[email protected]
- name: Compile Dev Release
uses: cloudfoundry/bosh-compile-action@main
with:
file: ${{ steps.build.outputs.file }}
args: --guess --debug