Skip to content

Commit

Permalink
fixes image-builder home directory permissions (#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxesn authored Oct 13, 2023
1 parent 7edabbc commit 2164917
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/kubernetes-sigs/image-builder/buildspecs/ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ env:
GOPATH: "/home/imagebuilder/go"

phases:
install:
run-as: root
commands:
- chown -R imagebuilder:imagebuilder /home/imagebuilder/.packer.d
pre_build:
commands:
- git config --global credential.helper '!aws codecommit credential-helper $@'
Expand Down
4 changes: 4 additions & 0 deletions projects/kubernetes-sigs/image-builder/buildspecs/ova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ env:
VSPHERE_CONNECTION_DATA: "vsphere_ci_beta_connection:vsphere_connection_data"

phases:
install:
run-as: root
commands:
- chown -R imagebuilder:imagebuilder /home/imagebuilder/.packer.d
pre_build:
commands:
- git config --global credential.helper '!aws codecommit credential-helper $@'
Expand Down

0 comments on commit 2164917

Please sign in to comment.