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

upload imagetest-logs directory #2670

Merged
merged 4 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .github/workflows/presubmit-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ jobs:
# simpler.
cat >> main_override.tf <<EOF
provider "imagetest" {
log = {
file = {
directory = "imagetest-logs"
}
}
harnesses = {
k3s = {
networks = {
Expand Down Expand Up @@ -199,6 +204,13 @@ jobs:
cluster-type: k3d
namespace-resources: deploy,ds,sts,pods

- name: Upload imagetest logs
if: always()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v3
with:
name: "mega-module-${{ matrix.shard.index }}-imagetest-logs"
path: imagetest-logs

presubmit-roundup:
needs: build-the-world
runs-on: ubuntu-latest
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
- withdrawn-images.txt
- withdrawn-repos.txt
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
only:
description: 'Specific image name to build'
description: "Specific image name to build"
type: string
required: false
default: ''
default: ""

concurrency: release

Expand All @@ -35,7 +35,6 @@ jobs:

- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5


- id: shard
name: Shard
shell: bash # bash math foo required
Expand Down Expand Up @@ -87,15 +86,15 @@ jobs:
- uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit

# In some cases, we run out of disk space during tests, so this hack frees up approx 25G.
# See the following issue for more info: https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
- name: Free up runner disk space
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6

- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3
with:
terraform_version: '1.6.*'
terraform_version: "1.6.*"
terraform_wrapper: false

- uses: chainguard-dev/actions/setup-chainctl@538d1927b846546b620784754c33e2a1db86e217 # main
Expand Down Expand Up @@ -150,6 +149,13 @@ jobs:
name: "mega-module-${{ matrix.shard.index }}.tf.json"
path: /tmp/mega-module.tf.json

- name: Upload imagetest logs
if: always()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v3
with:
name: "mega-module-${{ matrix.shard.index }}-imagetest-logs"
path: imagetest-logs

- uses: rtCamp/action-slack-notify@4e5fb42d249be6a45a298f3c9543b111b02f7907 # v2.3.0
if: ${{ failure() && github.event_name == 'schedule' }}
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ sbom-*.cdx

# macOS
.DS_Store

imagetest-logs/
8 changes: 7 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ terraform {
backend "inmem" {}
}

provider "imagetest" {}
provider "imagetest" {
log = {
file = {
directory = "imagetest-logs"
}
}
}

variable "target_repository" {
type = string
Expand Down
Loading