Skip to content

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

ci(test-bake): fix job name

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

Workflow file for this run

name: .test-build

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

View workflow run for this annotation

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

Invalid workflow file

(Line: 38, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 45, 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: 198, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 246, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 297, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_SCOPE_PREFIX, (Line: 494, 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-build.yml'
- '.github/workflows/build.yml'
- '.github/workflows/verify.yml'
- 'test/**'
pull_request:
paths:
- '.github/workflows/.test-build.yml'
- '.github/workflows/build.yml'
- '.github/workflows/verify.yml'
- 'test/**'
env:
TAG_SCOPE_PREFIX: build-ghbuilder-
jobs:
aws-single:
uses: ./.github/workflows/build.yml
permissions:
contents: read
id-token: write
with:
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws-single
file: test/hello.Dockerfile
output: image
push: ${{ github.event_name != 'pull_request' }}
sbom: true
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/build.yml
permissions:
contents: read
id-token: write
with:
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws
file: test/hello.Dockerfile
output: image
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
sbom: true
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/build.yml
permissions:
contents: read
id-token: write
with:
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws-nosign
file: test/hello.Dockerfile
output: image
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
sbom: true
sign: false
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:
uses: ./.github/workflows/build.yml
permissions:
contents: read
id-token: write
packages: write
with:
file: test/hello.Dockerfile
output: image
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
sbom: true
meta-images: ghcr.io/docker/github-builder-test
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}ghcr-${{ github.run_id }}
secrets:
registry-auths: |
- registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
ghcr-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- ghcr
with:
builder-outputs: ${{ toJSON(needs.ghcr.outputs) }}
secrets:
registry-auths: |
- registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
ghcr-outputs:
runs-on: ubuntu-24.04
needs:
- ghcr
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.ghcr.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
dockerhub-stage:
uses: ./.github/workflows/build.yml
permissions:
contents: read
id-token: write
with:
file: test/hello.Dockerfile
output: image
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
sbom: true
meta-images: registry-1-stage.docker.io/docker/github-builder-test
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}dockerhub-${{ github.run_id }}
secrets:
registry-auths: |
- registry: registry-1-stage.docker.io
username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
dockerhub-stage-verify:
uses: ./.github/workflows/verify.yml
if: ${{ github.event_name != 'pull_request' }}
needs:
- dockerhub-stage
with:
builder-outputs: ${{ toJSON(needs.dockerhub-stage.outputs) }}
secrets:
registry-auths: |
- registry: registry-1-stage.docker.io
username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
dockerhub-stage-outputs:
runs-on: ubuntu-24.04
needs:
- dockerhub-stage
steps:
-
name: Builder outputs
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
INPUT_BUILDER-OUTPUTS: ${{ toJSON(needs.dockerhub-stage.outputs) }}
with:
script: |
const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
core.info(JSON.stringify(builderOutputs, null, 2));
ghcr-and-aws:
uses: ./.github/workflows/build.yml
permissions:
contents: read
id-token: write
packages: write
with:
file: test/hello.Dockerfile
output: image
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
sbom: true
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/build.yml
permissions:
contents: read
id-token: write
with:
artifact-name: output
artifact-upload: true
file: test/hello.Dockerfile
output: local
platforms: linux/amd64,linux/arm64
sbom: true
sign: ${{ github.event_name != 'pull_request' }}
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/build.yml
permissions:
contents: read
id-token: write
with:
artifact-name: single-output
artifact-upload: true
file: test/hello.Dockerfile
output: local
sbom: true
sign: ${{ github.event_name != 'pull_request' }}
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/build.yml
permissions:
contents: read
id-token: write
with:
artifact-upload: false
file: test/hello.Dockerfile
output: local
platforms: linux/amd64,linux/arm64
sbom: true
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/build.yml
permissions:
contents: read
id-token: write
with:
artifact-name: nosign-output
artifact-upload: true
file: test/hello.Dockerfile
output: local
platforms: linux/amd64,linux/arm64
sbom: true
sign: false
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/build.yml
permissions:
contents: read
id-token: write
with:
runner: amd64
file: test/hello.Dockerfile
output: image
platforms: linux/amd64,linux/arm64
push: false
meta-images: ghcr.io/docker/github-builder-test
meta-tags: |
type=raw,value=${{ env.TAG_SCOPE_PREFIX }}${{ github.run_id }}
qemu:
uses: ./.github/workflows/build.yml
permissions:
contents: read
id-token: write
with:
setup-qemu: true
artifact-upload: false
file: test/hello.Dockerfile
output: local
platforms: linux/amd64,linux/arm64
sbom: true
aws-nodistrib:
uses: ./.github/workflows/build.yml
permissions:
contents: read
id-token: write
with:
distribute: false
cache: true
cache-scope: ${{ env.TAG_SCOPE_PREFIX }}aws-nodistrib
file: test/hello.Dockerfile
output: image
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
sbom: true
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/build.yml
permissions:
contents: read
id-token: write
with:
distribute: false
artifact-name: nodistrib-output
artifact-upload: true
file: test/hello.Dockerfile
output: local
platforms: linux/amd64,linux/arm64
sbom: true
sign: ${{ github.event_name != 'pull_request' }}