Skip to content

chore(deps): update dependency eslint-plugin-jest to v27.9.0 #626

chore(deps): update dependency eslint-plugin-jest to v27.9.0

chore(deps): update dependency eslint-plugin-jest to v27.9.0 #626

Workflow file for this run

name: e2e-kaniko
on:
pull_request:
paths:
- src/**
- tests/**
- '*.json'
- action.yaml
- .github/workflows/e2e-kaniko.yaml
push:
branches:
- main
tags:
- v*
paths:
- src/**
- tests/**
- '*.json'
- action.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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.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@e14548712f2c9db743e6f58793af373c40c6e534 # v1.37.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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn build
- run: yarn package
# run the action
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.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@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.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@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker run --rm '${{ needs.build.outputs.image-uri }}'