Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test hab-plugin #91

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
cb71acd
test hab-plugin
poorndm Dec 18, 2024
09e6bf0
Test Hab-plugin
poorndm Dec 18, 2024
6307436
update yml to execute plugin script
poorndm Dec 18, 2024
93523e4
removed file
poorndm Dec 18, 2024
31ca6b7
modified yml to pick hab-plugin
poorndm Dec 18, 2024
b4abc0c
yml correction
poorndm Dec 18, 2024
815e38a
update hab-sha -debugging stmt
poorndm Dec 19, 2024
85775d5
update with latest commit
poorndm Dec 19, 2024
6fb379b
modified yml
poorndm Dec 19, 2024
12e913a
modified yml with latest plugin sha
poorndm Dec 19, 2024
9e91965
modified yml with latest plugin sha
poorndm Dec 19, 2024
b6a367d
modified yml with latest plugin sha
poorndm Dec 19, 2024
ff8b07d
update with latest sha
poorndm Dec 19, 2024
185860e
update to latest plugin sha
poorndm Dec 19, 2024
ac0852a
update to latest plugin sha
poorndm Dec 19, 2024
1b812eb
update to latest plugin sha
poorndm Dec 19, 2024
c5ca1f7
Test EXPORT / DOCKER
poorndm Dec 19, 2024
690f35d
Test EXPORT / DOCKER
poorndm Dec 19, 2024
a392214
Test EXPORT / DOCKER
poorndm Dec 19, 2024
cf5261f
Test EXPORT / DOCKER
poorndm Dec 19, 2024
8eb1bbd
Test EXPORT / DOCKER
poorndm Dec 19, 2024
019bce8
Test EXPORT-docker.sh
poorndm Dec 19, 2024
f08af1d
Test export - docker and tar format
poorndm Dec 23, 2024
ab52e63
Modified to test export-docker format
poorndm Dec 23, 2024
c0a04af
Test export - TAR format
poorndm Dec 23, 2024
5df1e8c
Testing for export - TAR
poorndm Dec 23, 2024
e2a1ec6
set HAB_AUTH_TOKEN env
poorndm Dec 23, 2024
730bd57
Update latest commit - command - val
poorndm Dec 23, 2024
043f141
Update latest plugin - print command
poorndm Dec 23, 2024
99ca6c0
Update for both docker and tar test
poorndm Dec 23, 2024
21d73c3
modified tar command
poorndm Dec 24, 2024
6704680
modified sha - to print tar options
poorndm Dec 24, 2024
2493254
modified sha - to print tar options
poorndm Dec 24, 2024
207bfc8
Modified to pick plugin sha - modifie tar cmd
poorndm Dec 24, 2024
dc4484d
update plugin sha - export-tar- grep cmd
poorndm Dec 24, 2024
a1d5fc7
update plugin sha - export-tar- grep cmd
poorndm Dec 24, 2024
2f51597
update plugin sha - update env
poorndm Dec 24, 2024
9ead040
modified export_tar
poorndm Dec 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 41 additions & 11 deletions .expeditor/hab-export-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,55 @@ expeditor:
# Necessary to prevent old studios from poisoning builds after core plans refreshes
HAB_STUDIO_SECRET_HAB_PREFER_LOCAL_CHEF_DEPS: "true"
HAB_STUDIO_SECRET_HAB_REFRESH_CHANNEL: "stable"
HAB_AUTH_TOKEN: "super-secret-auth-token"

steps:

- label: "[:linux: build hab-pkg-export-tar and uplaod to :amazon-s3:]"
# - 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:
# accounts:
# - aws/chef-cd
# executor:
# docker:
# privileged: true
# environment:
# - BUILD_PKG_TARGET=x86_64-linux
- label: ":habitat: export chef-demo/hello-omnibus-harmony"
plugins:
- chef/habitat#fc58c8f976984a141716c9d4956cd42da3a74a73:
export: chef-demo/hello-omnibus-harmony
format: docker
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>"
- echo "--- Executing hooks/command from habitat-plugin -Docker"
# - bash commands/export.sh
expeditor:
accounts:
- aws/chef-cd
executor:
docker:
linux:
privileged: true
environment:
- BUILD_PKG_TARGET=x86_64-linux

single-use: true
- label: ":habitat: export chef-demo/hello-omnibus-harmony"
plugins:
- chef/habitat#fc58c8f976984a141716c9d4956cd42da3a74a73:
export: chef-demo/hello-omnibus-harmony
format: tar
command:
- echo "--- Executing hooks/command from habitat-plugin -TAR "
# - bash commands/export.sh
expeditor:
accounts:
- aws/chef-cd
executor:
linux:
privileged: true
single-use: true
# - label: "[:windows: build hab-pkg-export-tar]"
# command:
# - powershell .expeditor/scripts/release_habitat/build_component.ps1 pkg-export-tar
Expand All @@ -43,4 +73,4 @@ steps:
# host_os: windows
# environment:
# - BUILD_PKG_TARGET=x86_64-windows
# - BUILDKITE_AGENT_ACCESS_TOKEN
# - BUILDKITE_AGENT_ACCESS_TOKEN
36 changes: 25 additions & 11 deletions .expeditor/habitat-export.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,31 @@ expeditor:

steps:

- 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 install $EXPEDITOR_PKG_IDENTS_HELLOOMNIBUSHARMONYX86_64LINUX
- echo "--- Exporting to buildkite files $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:
# - 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 install $EXPEDITOR_PKG_IDENTS_HELLOOMNIBUSHARMONYX86_64LINUX
# - echo "--- Exporting to buildkite files $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:
# linux:
# privileged: true
# single-use: true

steps:
- label: ":habitat: export chef-demo/hello-omnibus-harmony"
plugins:
- chef/habitat#2a479e94e3dec3d2def59f6a7d831d9ab9ee336a
export: chef-demo/hello-omnibus-harmony
format: docker
expeditor:
accounts:
- aws/chef-cd
- aws/chef-cd
executor:
linux:
privileged: true
Expand Down Expand Up @@ -70,4 +84,4 @@ steps:
# host_os: windows
# environment:
# - BUILD_PKG_TARGET=x86_64-windows
# - BUILDKITE_AGENT_ACCESS_TOKEN
# - BUILDKITE_AGENT_ACCESS_TOKEN
Loading