chore(deps): update docker/setup-buildx-action action to v3.2.0 #667
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e-kaniko | |
on: | |
pull_request: | |
paths: | |
- src/** | |
- tests/** | |
- '*.json' | |
- '*.yaml' | |
- .github/workflows/e2e-kaniko.yaml | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
paths: | |
- src/** | |
- tests/** | |
- '*.json' | |
- '*.yaml' | |
- .github/workflows/e2e-kaniko.yaml | |
jobs: | |
build-linux-amd64: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
outputs: | |
image-uri: ghcr.io/${{ github.repository }}/e2e@${{ steps.build.outputs.digest }} | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 | |
id: metadata | |
with: | |
images: ghcr.io/${{ github.repository }}/e2e | |
# avoid overwriting the latest tag because metadata-action does not add a suffix to it | |
flavor: latest=false,suffix=-kaniko-amd64 | |
- uses: int128/kaniko-action@210291d6a7168f538f03813da1daad216144fb0e # v1.40.0 | |
id: build | |
with: | |
push: true | |
context: tests/fixtures | |
tags: ${{ steps.metadata.outputs.tags }} | |
labels: ${{ steps.metadata.outputs.labels }} | |
build: | |
needs: | |
- build-linux-amd64 | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
outputs: | |
image-uri: ghcr.io/${{ github.repository }}/e2e@${{ steps.build.outputs.digest }} | |
steps: | |
# build the action | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 20 | |
- run: corepack enable pnpm | |
- run: pnpm i | |
- run: pnpm build | |
# run the action | |
- uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3.2.0 | |
- uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 | |
id: metadata | |
with: | |
images: ghcr.io/${{ github.repository }}/e2e | |
flavor: latest=false,suffix=-kaniko | |
- name: docker-manifest-create-action (dry-run) | |
uses: ./ | |
with: | |
push: false | |
index-annotations: ${{ steps.metadata.outputs.labels }} | |
sources: | | |
${{ needs.build-linux-amd64.outputs.image-uri }} | |
- uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: docker-manifest-create-action@v2 | |
id: build | |
uses: ./ | |
with: | |
index-annotations: ${{ steps.metadata.outputs.labels }} | |
tags: ${{ steps.metadata.outputs.tags }} | |
sources: | | |
${{ needs.build-linux-amd64.outputs.image-uri }} | |
test-image: | |
needs: build | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- run: docker run --rm '${{ needs.build.outputs.image-uri }}' |