Skip to content

Commit

Permalink
[CI] Warn on upload failure and debug packer install (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Jun 24, 2022
1 parent 30dc9d0 commit 1818a06
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/build.yaml.gomplate
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
with:
name: cOS-Packer-{{{$subset}}}-{{{ $flavor }}}-vbox-{{{ $config.arch }}}.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
{{{- if $config.slack_on_failure }}}{{{tmpl.Exec "post_failed_status_slack"}}}{{{- end }}}
{{{ end }}}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-master-teal-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ jobs:
with:
name: cOS-Packer-squashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
- name: Send failed status to slack
if: failure()
uses: slackapi/[email protected]
Expand Down Expand Up @@ -853,7 +853,7 @@ jobs:
with:
name: cOS-Packer-nonsquashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
- name: Send failed status to slack
if: failure()
uses: slackapi/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-nightly-teal-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ jobs:
with:
name: cOS-Packer-squashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
- name: Send failed status to slack
if: failure()
uses: slackapi/[email protected]
Expand Down Expand Up @@ -830,7 +830,7 @@ jobs:
with:
name: cOS-Packer-nonsquashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
- name: Send failed status to slack
if: failure()
uses: slackapi/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-pr-teal-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ jobs:
with:
name: cOS-Packer-squashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
tests-squashfs-teal:
env:
ARCH: x86_64
Expand Down Expand Up @@ -564,7 +564,7 @@ jobs:
with:
name: cOS-Packer-nonsquashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
tests-nonsquashfs-teal:
env:
ARCH: x86_64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-releases-teal-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ jobs:
with:
name: cOS-Packer-squashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
- name: Send failed status to slack
if: failure()
uses: slackapi/[email protected]
Expand Down Expand Up @@ -853,7 +853,7 @@ jobs:
with:
name: cOS-Packer-nonsquashfs-teal-vbox-x86_64.capture.zip
path: capture.webm
if-no-files-found: error
if-no-files-found: warn
- name: Send failed status to slack
if: failure()
uses: slackapi/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion packer/images.json.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ build {

provisioner "shell" {
except = ["amazon-ebs.cos", "azure-arm.cos", "googlecompute.cos"]
inline = ["INTERACTIVE=false elemental install --cloud-init /90_custom.yaml /dev/sda",
inline = ["INTERACTIVE=false elemental install --debug --cloud-init /90_custom.yaml /dev/sda",
"if [ -n \"${var.feature}\" ]; then mount /dev/disk/by-label/COS_OEM /oem; cos-feature enable ${var.feature}; fi"
]
pause_after = "30s"
Expand Down

0 comments on commit 1818a06

Please sign in to comment.