Skip to content

Commit

Permalink
Sean simmons progress/chef 16390 hab export upload s3 (#84)
Browse files Browse the repository at this point in the history
* pipeline

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

* where is my directory?

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

* where is my directory?

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

* testing upload to buildkite output

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

* testing hab shim export to bring in the shared vars

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

---------

Signed-off-by: Sean Simmons <[email protected]>
  • Loading branch information
sean-simmons-progress authored Nov 6, 2024
1 parent 609dd18 commit 12a3726
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pipelines:
- omnibus/release
- habitat/build:
definition: .expeditor/build.habitat.yml
- hab-export:
- habitat/export:
definition: .expeditor/habitat-export.pipeline.yml

subscriptions:
Expand Down
42 changes: 36 additions & 6 deletions .expeditor/habitat-export.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,48 @@ expeditor:

steps:

- label: "[:linux: build hab-pkg-export-tar and uplaod to :amazon-s3:]"
command:
- echo "--- testing hab export tar chef-demo/hello-omnibus-harmony "
- hab pkg export tar chef-demo/hello-omnibus-harmony
- buildkite-agent artifact upload "/hab/cache/artifacts/*.tar"
expeditor:
- label: "[:linux: build hab-pkg-export-tar and uplaod to :amazon-s3:]"
commands:
- sudo ./.expeditor/scripts/install-hab.sh x86_64-linux
- echo "--- Installing $EXPEDITOR_PKG_IDENTS_HELLOOMNIBUSHARMONYX86_64LINUX"
- sudo hab pkg export tar $EXPEDITOR_PKG_IDENTS_HELLOOMNIBUSHARMONYX86_64LINUX
- buildkite-agent artifact upload "$(sed 's/\//-/g' <<< $EXPEDITOR_PKG_IDENTS_HELLOOMNIBUSHARMONYX86_64LINUX).${tar.gz}*"
expeditor:
accounts:
- aws/chef-cd
executor:
docker:
privileged: true
environment:
- BUILD_PKG_TARGET=x86_64-linux

# - label: ":windows: Validate Habitat Builds of Chef Infra"
# commands:
# - .expeditor/scripts/habitat-test.ps1 -WindowsArtifact $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64WINDOWS
# expeditor:
# executor:
# windows:
# privileged: true
# single-use: true
# shell: ["powershell", "-Command"]




# - label: "[:linux: build hab-pkg-export-tar and uplaod to :amazon-s3:]"
# command:
# - echo "--- testing hab export tar chef-demo/hello-omnibus-harmony"
# - hab pkg export tar chef-demo/hello-omnibus-harmony
# - echo "--- uploading tar.gz file to buldkite, artifactory, and s3" && buildkite-agent artifact upload "*.tar.gz"
# - aws s3 cp $tar_filename $s3_bucket_uri/$tar_filename --content-type "application/gzip" --profile "<profile to use>"
# - curl [email protected]:<PASSWORD> -T <PATH_TO_FILE> "https://artifactory-internal.ps.chef.co/artifactory/unstable-habitat-tarbal/<TARGET_FILE_PATH>"
# expeditor:
# executor:
# docker:
# privileged: true
# environment:
# - BUILD_PKG_TARGET=x86_64-linux

# - label: "[:windows: build hab-pkg-export-tar]"
# command:
# - powershell .expeditor/scripts/release_habitat/build_component.ps1 pkg-export-tar
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ is **not** a real project. This omnibus project is used to integration test
upstream changes in Omnibus.

Rubygems are tests mostly for workflow.

0 comments on commit 12a3726

Please sign in to comment.