Skip to content

Using kaniko to build and push image on gha-runner-scale-set in Kubernetes mode #3247

Closed Answered by Rollson
Rollson asked this question in FAQs
Discussion options

You must be logged in to vote

@anitabee, @jonwest thanks for the insight. I was able to get it to work. Posting it here for the sake of others

# build-with-kaniko.yml

name: Build with kaniko
on:
  push:
    branches: [ "*" ]
    paths:
      - "app/**"
      - ".github/workflows/build-with-kaniko.yml"
      
  workflow_dispatch:

env:
  KANIKO_CACHE_ARGS: "--cache=true --cache-copy-layers=true --cache-ttl=24h"

jobs:

  build-to-acr:
    runs-on: arc-runner-set 
    container:
      image: gcr.io/kaniko-project/executor:v1.20.0-debug # the kaniko image
    permissions:
      contents: read # read the repository

    steps:
      - name: Build and Push Image to ACR with kaniko
        run: |
          cat <<EOF > /kan…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@Rollson
Comment options

Comment options

You must be logged in to vote
8 replies
@jonwest
Comment options

@Rollson
Comment options

Answer selected by Rollson
@mazzy89
Comment options

@Rollson
Comment options

@jonathan-fileread
Comment options

@Rollson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQs
Labels
None yet
7 participants