-
Notifications
You must be signed in to change notification settings - Fork 36
181 lines (160 loc) · 6.42 KB
/
hab-pkg-build-upload.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
name: Publish Habitat Packages
on:
push:
# JAH: trigger more appropriately once development is done
# branches:
# - main
# release:
# types:
# - created
env:
BLDR_URL: 'https://bldr.habitat.sh/'
# HAB_ORIGIN: 'habitat'
HAB_ORIGIN: 'jasonheath'
HAB_AUTH_TOKEN: ${{ secrets.HAB_AUTH_TOKEN }}
HABITAT_VERSION_SET: 'latest'
HAB_STUDIO_SECRET_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
permissions:
contents: write
jobs:
# # In their component root, these particular components
# # - have a plan.sh file
# # - don't have a habitat plan directory
# # - don't have a habitat-dev plan directory
# # - don't have architecture specific plan directories
# plan-file-packages:
# name: ${{matrix.components}} (plan file)
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest]
# channel: [unstable]
# components: [builder-memcached, builder-datastore]
# runs-on: ${{matrix.os}}
# steps:
# - name: Checkout for ${{matrix.components}}
# uses: actions/checkout@v4
# - name: Install Habitat for ${{matrix.components}}
# uses: ./.github/actions/hab-install-linux
# - name: Build and Upload Habitat Package for ${{matrix.components}}
# uses: ./.github/actions/hab-pkg-build-and-upload-linux
# with:
# hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
# hab-origin: ${{ env.HAB_ORIGIN }}
# bldr-component: components/${{matrix.components}}
# # In their component root, these particular components
# # - don't have a plan.sh file
# # - have a habitat plan directory
# # - don't have a habitat-dev plan directory
# # - don't have architecture specific plan directories
# habitat-dir-packages:
# name: ${{matrix.components}} (habitat dir only)
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest]
# channel: [unstable]
# components: [builder-graph, builder-minio]
# runs-on: ${{matrix.os}}
# steps:
# - name: Checkout for ${{matrix.components}}
# uses: actions/checkout@v4
# - name: Install Habitat for ${{matrix.components}}
# uses: ./.github/actions/hab-install-linux
# - name: Build and Upload Habitat Package for ${{matrix.components}}
# uses: ./.github/actions/hab-pkg-build-and-upload-linux
# with:
# hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
# hab-origin: ${{ env.HAB_ORIGIN }}
# bldr-component: components/${{matrix.components}}/habitat
# # In their component root, these particular components
# # - don't have a plan.sh file
# # - don't have a habitat plan directory
# # - don't have a habitat-dev plan directory
# # - have architecture specific plan directories
# arch-target-packages:
# name: ${{matrix.arches}} ${{matrix.components}}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest]
# channel: [unstable]
# components: [builder-worker]
# arches: [x86_64-linux, x86_64-linux-kernel2, x86_64-windows]
# exclude:
# - os: ubuntu-latest
# arches: x86_64-windows
# - os: windows-latest
# arches: x86_64-linux
# - os: windows-latest
# arches: x86_64-linux-kernel2
# runs-on: ${{matrix.os}}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - if: ${{ matrix.os == 'ubuntu-latest' && matrix.arches != 'x86_64-windows' }}
# name: Install Habitat
# uses: ./.github/actions/hab-install-linux
# - if: ${{ matrix.os == 'windows-latest' && matrix.arches == 'x86_64-windows' }}
# name: Install Habitat
# uses: ./.github/actions/hab-install-windows
# - if: ${{ matrix.os == 'ubuntu-latest' && matrix.arches != 'x86_64-windows' }}
# name: Build and Upload Habitat Package
# uses: ./.github/actions/hab-pkg-build-and-upload-linux
# with:
# hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
# hab-origin: ${{ env.HAB_ORIGIN }}
# bldr-component: components/${{matrix.components}}/habitat/${{matrix.arches}}
# - if: ${{ matrix.os == 'windows-latest' && matrix.arches == 'x86_64-windows' }}
# name: Build and Upload Habitat Package
# uses: ./.github/actions/hab-pkg-build-and-upload-windows
# with:
# hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
# hab-origin: ${{ env.HAB_ORIGIN }}
# bldr-component: components/${{matrix.components}}/habitat/${{matrix.arches}}
# app-version: ${{ needs.pre-build.outputs.app_version }}
# build-date-time: ${{ needs.pre-build.outputs.date }}
# In their component root, these particular components
# - don't have a plan.sh file
# - have a habitat plan directory
# - have a habitat-dev plan directory
# - don't have architecture specific plan directories
habitat-dev-dir-packages:
name: ${{matrix.components}} (habitat and habitat-dev dirs)
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
channel: [unstable]
components: [builder-jobserv]
# components: [builder-api, builder-jobsrv]
# components: [builder-api, builder-api-proxy, builder-jobsrv, builder-worker]
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Habitat
uses: ./.github/actions/hab-install-linux
- name: ${{matrix.components}} habitat directory package
uses: ./.github/actions/hab-pkg-build-and-upload-linux
with:
hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
hab-origin: ${{ env.HAB_ORIGIN }}
bldr-component: components/${{matrix.components}}/habitat
- name: hab pkg build and install
shell: bash
run: |
echo ---- BEGIN hab pkg path EXPERIMENTS
echo ---- hab pkg path $pkg_origin/$pkg_name
hab pkg path $pkg_origin/$pkg_name
echo ---- END hab pkg path EXPERIMENTS
- name: ${{matrix.components}} habitat-dev directory package
uses: ./.github/actions/hab-pkg-build-and-upload-linux
with:
hab-auth-token: ${{ env.HAB_AUTH_TOKEN }}
hab-origin: ${{ env.HAB_ORIGIN }}
bldr-component: components/${{matrix.components}}/habitat-dev
# JAH: trigger appropriately
# JAH: Set the hab_auth_token more appropriately
# JAH: stop using jasonheath origin
# JAH: fix broken builder-api-proxy