Skip to content

Commit

Permalink
Revert commented out job
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Haudum <[email protected]>
  • Loading branch information
chaudum committed Jan 22, 2025
1 parent d2b6761 commit 761731b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 28 deletions.
50 changes: 22 additions & 28 deletions .github/release-workflows.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -119,37 +119,36 @@ local weeklyImageJobs = {
contents: 'write',
'pull-requests': 'write',
},
// Disable for faster testing
// jobs: {
// check: {
// uses: checkTemplate,
// with: {
// build_image: buildImage,
// golang_ci_lint_version: golangCiLintVersion,
// release_lib_ref: releaseLibRef,
// skip_validation: false,
// use_github_app_token: true,
// },
// },
// } + {
jobs: {
check: {
uses: checkTemplate,
with: {
build_image: buildImage,
golang_ci_lint_version: golangCiLintVersion,
release_lib_ref: releaseLibRef,
skip_validation: false,
use_github_app_token: true,
},
},
} + {
['%s-image' % name]:
weeklyImageJobs[name]
// + lokiRelease.job.withNeeds(['check'])
{
env: {
BUILD_TIMEOUT: imageBuildTimeoutMin,
RELEASE_REPO: 'grafana/loki',
RELEASE_LIB_REF: releaseLibRef,
IMAGE_PREFIX: imagePrefix,
GO_VERSION: goVersion,
},
}
+ job.withNeeds(['check'])
+ job.withEnv({
BUILD_TIMEOUT: imageBuildTimeoutMin,
RELEASE_REPO: 'grafana/loki',
RELEASE_LIB_REF: releaseLibRef,
IMAGE_PREFIX: imagePrefix,
GO_VERSION: goVersion,
})
for name in std.objectFields(weeklyImageJobs)
} + {
['%s-manifest' % name]:
job.new()
+ job.withNeeds(['%s-image' % name])
+ job.withEnv({
BUILD_TIMEOUT: imageBuildTimeoutMin,
})
+ job.withSteps([
step.new('Set up Docker buildx', 'docker/setup-buildx-action@v3'),
step.new('Login to DockerHub (from Vault)', 'grafana/shared-workflows/actions/dockerhub-login@main'),
Expand All @@ -168,11 +167,6 @@ local weeklyImageJobs = {
docker buildx imagetools inspect $IMAGE
||| % { name: '%s-image' % name }),
])
+ {
env: {
BUILD_TIMEOUT: imageBuildTimeoutMin,
},
}
for name in std.objectFields(weeklyImageJobs)
},
}),
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
"jobs":
"check":
"uses": "grafana/loki-release/.github/workflows/check.yml@main"
"with":
"build_image": "grafana/loki-build-image:0.34.4"
"golang_ci_lint_version": "v1.60.3"
"release_lib_ref": "main"
"skip_validation": false
"use_github_app_token": true
"loki-canary-boringcrypto-image":
"env":
"BUILD_TIMEOUT": 60
"GO_VERSION": "1.23.5"
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"outputs":
"image_digest_linux_amd64": "${{ steps.digest.outputs.digest_linux_amd64 }}"
"image_digest_linux_arm": "${{ steps.digest.outputs.digest_linux_arm }}"
Expand Down Expand Up @@ -112,6 +122,8 @@
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"outputs":
"image_digest_linux_amd64": "${{ steps.digest.outputs.digest_linux_amd64 }}"
"image_digest_linux_arm": "${{ steps.digest.outputs.digest_linux_arm }}"
Expand Down Expand Up @@ -218,6 +230,8 @@
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"outputs":
"image_digest_linux_amd64": "${{ steps.digest.outputs.digest_linux_amd64 }}"
"image_digest_linux_arm": "${{ steps.digest.outputs.digest_linux_arm }}"
Expand Down Expand Up @@ -324,6 +338,8 @@
"IMAGE_PREFIX": "grafana"
"RELEASE_LIB_REF": "main"
"RELEASE_REPO": "grafana/loki"
"needs":
- "check"
"outputs":
"image_digest_linux_amd64": "${{ steps.digest.outputs.digest_linux_amd64 }}"
"image_digest_linux_arm": "${{ steps.digest.outputs.digest_linux_arm }}"
Expand Down

0 comments on commit 761731b

Please sign in to comment.