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 0fa49fe commit 71265d7
Showing 1 changed file with 22 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

0 comments on commit 71265d7

Please sign in to comment.