Skip to content

Commit

Permalink
try using full path
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbeedy committed Jan 25, 2024
1 parent 3426aff commit c5e8e3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-2' # optional: defaults to us-east-1
SOURCE_DIR: '/opt/actions-runner/_work/democluster/democluster/democluster' # optional: defaults to entire repository
SOURCE_DIR: '/opt/actions-runner/_work/democluster/democluster/final' # optional: defaults to entire repository
DEST_DIR: "cloud-images/democluster/latest"
5 changes: 3 additions & 2 deletions democluster/democluster.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ build {

post-processor "shell-local" {
inline = [
"cp output-stage0/packer-stage0 democluster.img",
"mkdir final
"cp output-stage0/packer-stage0 final/democluster.img",
"rm -rf output-stage0/",
"chmod 777 democluster.img",
"chmod -R 777 final",
]
}
}

0 comments on commit c5e8e3d

Please sign in to comment.