Skip to content

ci(test-bake): fix job name #103

ci(test-bake): fix job name

ci(test-bake): fix job name #103

Workflow file for this run

name: .test-bake

Check failure on line 1 in .github/workflows/.test-bake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/.test-bake.yml

Invalid workflow file

(Line: 38, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 46, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 89, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 97, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 140, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 149, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 200, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 399, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 423, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 431, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'releases/v*'
tags:
- 'v*'
paths:
- '.github/workflows/.test-bake.yml'
- '.github/workflows/bake.yml'
- '.github/workflows/verify.yml'
- 'test/**'
pull_request:
paths:
- '.github/workflows/.test-bake.yml'
- '.github/workflows/bake.yml'
- '.github/workflows/verify.yml'
- 'test/**'
env:
TAG_SCOPE_PREFIX: bake-ghbuilder-
jobs:
aws-single:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws-single
context: test
output: image
push: ${{ github.event_name != 'pull_request' }}
sbom: true
target: hello
meta-images: |
public.ecr.aws/q3b5f1u4/test-docker-action
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}aws-single-${{ github.run_id }}
secrets:
registry-auths: |
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-single-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- aws-single
with:
builder-outputs: ${{ toJSON(needs.aws-single.outputs) }}
secrets:
registry-auths: |
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-single-outputs:
runs-on: ubuntu-24.04
needs:
- aws-single
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.aws-single.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
aws:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws
context: test
output: image
push: ${{ github.event_name != 'pull_request' }}
sbom: true
target: hello-cross
meta-images: |
public.ecr.aws/q3b5f1u4/test-docker-action
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}aws-${{ github.run_id }}
secrets:
registry-auths: |
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- aws
with:
builder-outputs: ${{ toJSON(needs.aws.outputs) }}
secrets:
registry-auths: |
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-outputs:
runs-on: ubuntu-24.04
needs:
- aws
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.aws.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
aws-nosign:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws-nosign
context: test
output: image
push: ${{ github.event_name != 'pull_request' }}
sbom: true
sign: false
target: hello-cross
meta-images: |
public.ecr.aws/q3b5f1u4/test-docker-action
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}aws-nosign-${{ github.run_id }}
secrets:
registry-auths: |
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-nosign-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- aws-nosign
with:
builder-outputs: ${{ toJSON(needs.aws-nosign.outputs) }}
secrets:
registry-auths: |
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-nosign-outputs:
runs-on: ubuntu-24.04
needs:
- aws-nosign
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.aws-nosign.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
ghcr-and-aws:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
packages: write
with:
context: test
output: image
push: ${{ github.event_name != 'pull_request' }}
sbom: true
target: hello-cross
meta-images: |
ghcr.io/docker/github-builder-test
public.ecr.aws/q3b5f1u4/test-docker-action
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}ghcr-and-aws-${{ github.run_id }}
secrets:
registry-auths: |
- registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ghcr-and-aws-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- ghcr-and-aws
with:
builder-outputs: ${{ toJSON(needs.ghcr-and-aws.outputs) }}
secrets:
registry-auths: |
- registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ghcr-and-aws-outputs:
runs-on: ubuntu-24.04
needs:
- ghcr-and-aws
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.ghcr-and-aws.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
local:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
artifact-name: output
artifact-upload: true
context: test
output: local
sbom: true
sign: ${{ github.event_name != 'pull_request' }}
target: hello-cross
local-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- local
with:
builder-outputs: ${{ toJSON(needs.local.outputs) }}
local-outputs:
runs-on: ubuntu-24.04
needs:
- local
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.local.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
local-single:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
artifact-name: single-output
artifact-upload: true
context: test
output: local
sbom: true
sign: ${{ github.event_name != 'pull_request' }}
target: hello
local-single-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- local-single
with:
builder-outputs: ${{ toJSON(needs.local-single.outputs) }}
local-single-outputs:
runs-on: ubuntu-24.04
needs:
- local-single
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.local-single.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
local-noupload:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
artifact-upload: false
context: test
output: local
sbom: true
target: hello-cross
local-noupload-verify:
uses: ./.github/workflows/verify.yml
needs:
- local-noupload
with:
builder-outputs: ${{ toJSON(needs.local-noupload.outputs) }}
local-noupload-outputs:
runs-on: ubuntu-24.04
needs:
- local-noupload
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.local-noupload.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
local-nosign:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
artifact-name: nosign-output
artifact-upload: true
context: test
output: local
sbom: true
sign: false
target: hello-cross
local-nosign-verify:
uses: ./.github/workflows/verify.yml
needs:
- local-nosign
with:
builder-outputs: ${{ toJSON(needs.local-nosign.outputs) }}
local-nosign-outputs:
runs-on: ubuntu-24.04
needs:
- local-nosign
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.local-nosign.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
set-runner:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
runner: amd64
context: test
output: image
push: false
target: hello-cross
meta-images: |
public.ecr.aws/q3b5f1u4/test-docker-action
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}-${{ github.run_id }}
qemu:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
setup-qemu: true
artifact-upload: false
context: test
output: local
sbom: true
target: hello-cross
aws-nodistrib:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
distribute: false
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws-nodistrib
context: test
output: image
push: ${{ github.event_name != 'pull_request' }}
sbom: true
target: hello-cross
meta-images: |
public.ecr.aws/q3b5f1u4/test-docker-action
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}aws-nodistrib-${{ github.run_id }}
secrets:
registry-auths: |
- registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
local-nodistrib:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
distribute: false
artifact-name: nodistrib-output
artifact-upload: true
context: test
output: local
sbom: true
sign: ${{ github.event_name != 'pull_request' }}
target: hello-cross
vars:
uses: ./.github/workflows/bake.yml
permissions:
contents: read
id-token: write
with:
setup-qemu: true
artifact-upload: false
context: test
output: local
target: go
vars: |
XX_VERSION=1.9.0