Skip to content

Commit

Permalink
Make software-report.md more workflow friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
guicaulada committed Nov 6, 2024
1 parent eb54d65 commit 3e546db
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/packer-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ jobs:
run: |
mkdir -p artifacts
name=$(basename -s .pkr.hcl ${{ matrix.template }})
readme=$(git ls-files --others --exclude-standard -- '**/*.md')
mv "$readme" artifacts/readme-${name}.md
readme=$(git ls-files --others --exclude-standard -- '**/software-report.md')
mv "$readme" artifacts/${name}-software-report.md
report=$(git ls-files --others --exclude-standard -- '**/software-report.json')
mv "$report" artifacts/software-report-${name}.json
mv "$report" artifacts/${name}-software-report.json
manifest=$(git ls-files --others --exclude-standard -- '**/build-manifest.json')
mv "$manifest" artifacts/build-manifest-${name}.json
mv "$manifest" artifacts/${name}-build-manifest.json
echo "name=$name" >> "${GITHUB_OUTPUT}"
- name: Upload artifacts
Expand Down
2 changes: 1 addition & 1 deletion images/ubuntu/templates/ubuntu-20.04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ build {
}

provisioner "file" {
destination = "${path.root}/../Ubuntu2004-Readme.md"
destination = "${path.root}/../software-report.md"
direction = "download"
source = "${var.image_folder}/software-report.md"
}
Expand Down
2 changes: 1 addition & 1 deletion images/ubuntu/templates/ubuntu-22.04.arm64.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ build {
}

provisioner "file" {
destination = "${path.root}/../Ubuntu2204-arm64-Readme.md"
destination = "${path.root}/../software-report.md"
direction = "download"
source = "${var.image_folder}/software-report.md"
}
Expand Down
2 changes: 1 addition & 1 deletion images/ubuntu/templates/ubuntu-22.04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ build {
}

provisioner "file" {
destination = "${path.root}/../Ubuntu2204-Readme.md"
destination = "${path.root}/../software-report.md"
direction = "download"
source = "${var.image_folder}/software-report.md"
}
Expand Down
2 changes: 1 addition & 1 deletion images/ubuntu/templates/ubuntu-24.04.arm64.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ build {
}

provisioner "file" {
destination = "${path.root}/../Ubuntu2404-arm64-Readme.md"
destination = "${path.root}/../software-report.md"
direction = "download"
source = "${var.image_folder}/software-report.md"
}
Expand Down
2 changes: 1 addition & 1 deletion images/ubuntu/templates/ubuntu-24.04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ build {
}

provisioner "file" {
destination = "${path.root}/../Ubuntu2404-Readme.md"
destination = "${path.root}/../software-report.md"
direction = "download"
source = "${var.image_folder}/software-report.md"
}
Expand Down

0 comments on commit 3e546db

Please sign in to comment.