forked from signalfx/splunk-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.17 KB
/
bosh-release.yml
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
name: Cloud Foundry BOSH Release
# The workflow triggered by any change in deployments/cloudfoundry/bosh/.
# 1. Run buildpack test.
on:
pull_request:
paths:
- 'deployments/cloudfoundry/bosh/**'
permissions:
contents: write
defaults:
run:
working-directory: 'deployments/cloudfoundry/bosh'
jobs:
test:
name: Test Bosh Release Creation
# Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase.
uses: actions/checkout@v3
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@0c611abec1fc679030907286a2c084cc92fb8f2e
- name: Install BOSH CLI
shell: bash
run: |
brew install cloudfoundry/tap/bosh-cli
bosh -v
- name: Run release script
shell: bash
run: |
export UPLOAD_RELEASE=0
export IS_DEV_RELEASE=1
./release
export IS_DEV_RELEASE=0
./release
FILE=./latest-release.tgz
if [ ! -f "$FILE" ]; then
echo "$FILE does not exist."
exit 1
fi