Skip to content

Commit

Permalink
Sean simmons progress/test habitat (#68)
Browse files Browse the repository at this point in the history
* editing habitat build

testing hab build

Signed-off-by: Sean Simmons <[email protected]>

* editing habitat build

testing hab build

Signed-off-by: Sean Simmons <[email protected]>

* lint yaml

Signed-off-by: Sean Simmons <[email protected]>

* x86_64 linux

Signed-off-by: Sean Simmons <[email protected]>

* queues dont work in adhoc env

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* expeditor config errors

Signed-off-by: Sean Simmons <[email protected]>

* testing by adding some comments

Signed-off-by: Sean Simmons <[email protected]>

* testing by adding some comments

Signed-off-by: Sean Simmons <[email protected]>

* moving src out to root of the project, as its expected there

Signed-off-by: Sean Simmons <[email protected]>

* updating some values

Signed-off-by: Sean Simmons <[email protected]>

* adding version and updating config, and updating expeditor to bump version when merged

Signed-off-by: Sean Simmons <[email protected]>

---------

Signed-off-by: Sean Simmons <[email protected]>
  • Loading branch information
sean-simmons-progress authored Oct 28, 2024
1 parent bc5c0b6 commit 0ade0e8
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bldr.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[chef-infra-client-harmony]
[hello-omnibus-harmony]
build_targets = [
"x86_64-linux"
]
2 changes: 1 addition & 1 deletion .expeditor/build.habitat.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
bldr_toml: .bldr.toml
origin: chef-demo
origin: chefops
7 changes: 6 additions & 1 deletion .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,19 @@ pipelines:
subscriptions:
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
actions:
- built_in:bump_version:
ignore_labels:
- "Expeditor: Skip All"
- "Expeditor: Skip Version Bump"
- trigger_pipeline:omnibus/adhoc:
ignore_labels:
- "Expeditor: Skip Omnibus"
- "Expeditor: Skip All"
- trigger_pipeline:habitat/build:
ignore_labels:
- "Expeditor: Skip Habitat"
- "Expeditor: Skip All"
- "Expeditor: Skip All"

#- trigger_pipeline:omnibus/release
# - workload: pull_request_merged:chef/omnibus-software:main:*
# actions:
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.1
13 changes: 10 additions & 3 deletions habitat/plan.sh
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
pkg_name=hello-omnibus-harmony
pkg_origin=chef-demo
pkg_version="1.0.0"
pkg_origin=chefops
pkg_maintainer="The Chef Best team, training"
pkg_license=('Apache-2.0')
pkg_build_deps=(core/go22)
pkg_deps=()
pkg_bin_dirs=(bin)

pkg_version() {
echo "--- pgk_version function"
cat "${SRC_PATH}/VERSION"
}

do_download() {
echo "--- do_download function"
return 0
}

do_setup_environment() {
echo "--- do_setup_environment function"
REPO_PATH="$HAB_CACHE_SRC_PATH/$pkg_dirname"
set_runtime_env APP_VERSION "$pkg_version"
set_runtime_env APP_RELEASE "$pkg_release"
}

do_before() {
echo "--- do_before function"
rm -rf "$REPO_PATH"
}

do_build() {
echo --- "do_build function"
# By default, we're in the directory in which the Studio was entered
# (in this case, presumably the project root), so we can run commands
# as though we were in that same directory. By the time we reach this
# callback, `npm` will have been installed for us.

pwd
ls -lah
cp -R src $REPO_PATH
cd $REPO_PATH
cd src
Expand All @@ -39,7 +45,8 @@ do_build() {
return 0
}

do_install() {
do_install() {
echo "--- do_install function"
# The `pkg_prefix` variable contains the fully-qualified Studio-relative path to
# a specific build run (e.g., /hab/pkgs/<YOUR_ORIGIN>/sample-node-app/1.1.0/20180620174915).
# In this callback, we copy the files that our application requires at runtime
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0ade0e8

Please sign in to comment.