glenjamin/kaniko-publish-orb

Non-orbs recipe

samm-git opened this issue · 1 comments

Hi,

I am interested to try kanica build on On Premise CircleCI install.

Unfortunately it does not support orbs. Could you please provide minimal yml file to use w/o orbs?

@samm-git if you're still interested, you can use the Docker image directly on your CircleCI workflow with:

version: 2
jobs:
  docker-build-and-push:
    docker:
      - image: glenathan/circleci-kaniko:build-62
    working_directory: /workspace
    steps:
      - checkout
      - run:
          name: docker-image
          command: |
            auth=$(printf "${DOCKER_LOGIN}:${DOCKER_PASSWORD}" | base64)
            cat \<< JSON > /kaniko/.docker/config.json
            {
              "auths": {
                "https://index.docker.io/v1/": {
                  "auth": "${auth}"
                }
              }
            }
            JSON

            /kaniko/executor --dockerfile="${CIRCLE_WORKING_DIRECTORY}/Dockerfile" \
              --destination="${DOCKER_IMAGE_REPO}:${DOCKER_TAG}"

workflows:
  version: 2
  docker-image:
    jobs:
      - docker-build-and-push