Skip to content

Commit

Permalink
initial step.
Browse files Browse the repository at this point in the history
Signed-off-by: sreepuramsudheer <[email protected]>
  • Loading branch information
sreepuramsudheer committed Sep 23, 2024
1 parent bfd4251 commit 2e9cff1
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 103 deletions.
17 changes: 2 additions & 15 deletions .expeditor/automate_build.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
#!/bin/bash -e

echo "inside script"
git clone https://github.com/chef/automate.git
cd automate
git checkout vikas/cs-changes-for-pipeline
pushd results
buildkite-agent artifact download "*.hart" ./
popd
# buildkite-agent artifact download "*.hart" ./results

echo "results directory contents" `ls -l results`
# echo "results directory contents" `ls -l results`

Bookself_hart_file=$(ls results/*bookshelf*.hart)
echo "Found hart file: $Bookself_hart_file"
base_name=$(basename "$Bookself_hart_file") # Get just the filename
IFS='-' read -r name comp version timestamp os <<< "${base_name%.hart}"
formatted_output="$comp/$version/$timestamp"

plan_file="components/automate-cs-bookshelf/habitat/plan.sh"
sed -i "s|\${vendor_origin}/bookshelf|\${vendor_origin}/${formatted_output}|g" "$plan_file"
echo "Replaced line in $plan_file"
cat components/automate-cs-bookshelf/habitat/plan.sh
./scripts/verify_build.sh

tar -cvf results.tar results
Expand Down
176 changes: 88 additions & 88 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,43 +135,25 @@ steps:
# # Habitat Packages of Infra Server
# #########################################################################

- label: bookshelf-hab
command:
- /workdir/.expeditor/habitat.sh
expeditor:
executor:
docker:
privileged: true
environment:
- OCTOKIT_ACCESS_TOKEN
- HAB_LICENSE=accept
- CHEF_LICENSE="accept-no-persist"
- CI="true"
- HAB_ORIGIN=chef
- HAB_ORIGIN_KEYS=chef
- HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
- HAB_FEAT_IGNORE_LOCAL="true"
- PACKAGE_NAME=bookshelf

- label: cs-nginx-hab
command:
- /workdir/.expeditor/habitat.sh
expeditor:
executor:
docker:
privileged: true
environment:
- OCTOKIT_ACCESS_TOKEN
- HAB_LICENSE=accept
- CHEF_LICENSE="accept-no-persist"
- CI="true"
- HAB_ORIGIN=chef
- HAB_ORIGIN_KEYS=chef
- HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
- HAB_FEAT_IGNORE_LOCAL="true"
- PACKAGE_NAME=nginx
# - label: bookshelf-hab
# command:
# - /workdir/.expeditor/habitat.sh
# expeditor:
# executor:
# docker:
# privileged: true
# environment:
# - OCTOKIT_ACCESS_TOKEN
# - HAB_LICENSE=accept
# - CHEF_LICENSE="accept-no-persist"
# - CI="true"
# - HAB_ORIGIN=chef
# - HAB_ORIGIN_KEYS=chef
# - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
# - HAB_FEAT_IGNORE_LOCAL="true"
# - PACKAGE_NAME=bookshelf

# - label: chef-server-ctl-hab
# - label: cs-nginx-hab
# command:
# - /workdir/.expeditor/habitat.sh
# expeditor:
Expand All @@ -187,61 +169,79 @@ steps:
# - HAB_ORIGIN_KEYS=chef
# - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
# - HAB_FEAT_IGNORE_LOCAL="true"
# - PACKAGE_NAME=chef-server-ctl
# - PACKAGE_NAME=nginx

- label: oc_bifrost-hab
command:
- /workdir/.expeditor/habitat.sh
expeditor:
executor:
docker:
privileged: true
environment:
- OCTOKIT_ACCESS_TOKEN
- HAB_LICENSE=accept
- CHEF_LICENSE="accept-no-persist"
- CI="true"
- HAB_ORIGIN=chef
- HAB_ORIGIN_KEYS=chef
- HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
- HAB_FEAT_IGNORE_LOCAL="true"
- PACKAGE_NAME=oc_bifrost
# # - label: chef-server-ctl-hab
# # command:
# # - /workdir/.expeditor/habitat.sh
# # expeditor:
# # executor:
# # docker:
# # privileged: true
# # environment:
# # - OCTOKIT_ACCESS_TOKEN
# # - HAB_LICENSE=accept
# # - CHEF_LICENSE="accept-no-persist"
# # - CI="true"
# # - HAB_ORIGIN=chef
# # - HAB_ORIGIN_KEYS=chef
# # - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
# # - HAB_FEAT_IGNORE_LOCAL="true"
# # - PACKAGE_NAME=chef-server-ctl

- label: oc_erchef-hab
command:
- /workdir/.expeditor/habitat.sh
expeditor:
executor:
docker:
privileged: true
environment:
- OCTOKIT_ACCESS_TOKEN
- HAB_LICENSE=accept
- CHEF_LICENSE="accept-no-persist"
- CI="true"
- HAB_ORIGIN=chef
- HAB_ORIGIN_KEYS=chef
- HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
- HAB_FEAT_IGNORE_LOCAL="true"
- PACKAGE_NAME=oc_erchef
# - label: oc_bifrost-hab
# command:
# - /workdir/.expeditor/habitat.sh
# expeditor:
# executor:
# docker:
# privileged: true
# environment:
# - OCTOKIT_ACCESS_TOKEN
# - HAB_LICENSE=accept
# - CHEF_LICENSE="accept-no-persist"
# - CI="true"
# - HAB_ORIGIN=chef
# - HAB_ORIGIN_KEYS=chef
# - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
# - HAB_FEAT_IGNORE_LOCAL="true"
# - PACKAGE_NAME=oc_bifrost

- label: openresty-noroot-hab
command:
- /workdir/.expeditor/habitat.sh
expeditor:
executor:
docker:
privileged: true
environment:
- OCTOKIT_ACCESS_TOKEN
- HAB_LICENSE=accept
- CHEF_LICENSE="accept-no-persist"
- CI="true"
- HAB_ORIGIN=chef
- HAB_ORIGIN_KEYS=chef
- HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
- HAB_FEAT_IGNORE_LOCAL="true"
- PACKAGE_NAME=openresty-noroot
# - label: oc_erchef-hab
# command:
# - /workdir/.expeditor/habitat.sh
# expeditor:
# executor:
# docker:
# privileged: true
# environment:
# - OCTOKIT_ACCESS_TOKEN
# - HAB_LICENSE=accept
# - CHEF_LICENSE="accept-no-persist"
# - CI="true"
# - HAB_ORIGIN=chef
# - HAB_ORIGIN_KEYS=chef
# - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
# - HAB_FEAT_IGNORE_LOCAL="true"
# - PACKAGE_NAME=oc_erchef

# - label: openresty-noroot-hab
# command:
# - /workdir/.expeditor/habitat.sh
# expeditor:
# executor:
# docker:
# privileged: true
# environment:
# - OCTOKIT_ACCESS_TOKEN
# - HAB_LICENSE=accept
# - CHEF_LICENSE="accept-no-persist"
# - CI="true"
# - HAB_ORIGIN=chef
# - HAB_ORIGIN_KEYS=chef
# - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true"
# - HAB_FEAT_IGNORE_LOCAL="true"
# - PACKAGE_NAME=openresty-noroot

# - label: oc_id-hab
# command:
Expand Down

0 comments on commit 2e9cff1

Please sign in to comment.