Skip to content

Commit

Permalink
update permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibinger committed Jan 29, 2025
1 parent c52003a commit 78e0348
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/images-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on: pull_request

env:
REGISTRY_ALIAS: w0i8p0z9
permissions:
id-token: write
contents: read

jobs:
# hadolint:
# name: Lint Dockerfiles
Expand Down Expand Up @@ -36,8 +40,9 @@ jobs:

build-amd64:
name: Build & Push AMD64 Image
runs-on: ubuntu-latest # Ensure it supports x86_64
needs: [ check-modified ]
runs-on: ubuntu-latest # Ensure it supports x86_64
environment: ecr-prod-publish
needs: [check-modified]
strategy:
matrix: ${{ fromJson(needs.check-modified.outputs.dockerfile_dirs) }}
fail-fast: false
Expand Down Expand Up @@ -75,8 +80,9 @@ jobs:

build-arm64:
name: Build & Push Arm64 Image
runs-on: ubuntu-24.04-arm # Ensure it supports x86_64
needs: [ check-modified ]
runs-on: ubuntu-24.04-arm # Ensure it supports x86_64

Check failure on line 83 in .github/workflows/images-pull-request.yaml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/images-pull-request.yaml#L83

label "ubuntu-24.04-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
Raw output
.github/workflows/images-pull-request.yaml:83:14: label "ubuntu-24.04-arm" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file [runner-label]
environment: ecr-prod-publish
needs: [check-modified]
strategy:
matrix: ${{ fromJson(needs.check-modified.outputs.dockerfile_dirs) }}
fail-fast: false
Expand Down Expand Up @@ -115,6 +121,7 @@ jobs:
create-manifest:
name: Create & Push Multi-Arch Manifest
runs-on: ubuntu-latest
environment: ecr-prod-publish
strategy:
matrix: ${{ fromJson(needs.check-modified.outputs.dockerfile_dirs) }}
fail-fast: false
Expand All @@ -140,4 +147,3 @@ jobs:
--amend ${{ steps.login-ecr.outputs.registry }}/${ env.REGISTRY_ALIAS }/${{ matrix.image }}:sha-${{ github.sha }}-arm64
docker manifest push ${{ steps.login-ecr.outputs.registry }}/${ env.REGISTRY_ALIAS }/${{ matrix.image }}:sha-${{ github.sha }}

0 comments on commit 78e0348

Please sign in to comment.