Skip to content
Snippets Groups Projects
Select Git revision
  • fd23d0c3eea486c9c5f8db88213141d1ec3172f3
  • master default protected
2 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 813 B
    stages:
      - build
      - push
    
    build:
      stage: build
      image:
        name: gcr.io/kaniko-project/executor:debug
        entrypoint: [""]
      only:
        - master
      script:
        - /kaniko/executor
          --cache=true
          --context "${CI_PROJECT_DIR}"
          --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
          --destination "dcr.faked.org/chitui:${CI_COMMIT_SHORT_SHA}"
    
    push_latest:
      stage: push
      image:
        name: gcr.io/go-containerregistry/crane:debug
        entrypoint: [""]
      only:
        - master
      script:
        - crane copy dcr.faked.org/chitui:${CI_COMMIT_SHORT_SHA} dcr.faked.org/chitui:latest
    
    push_tag:
      stage: push
      image:
        name: gcr.io/go-containerregistry/crane:debug
        entrypoint: [""]
      only:
        - tags
      script:
        - crane copy dcr.faked.org/chitui:${CI_COMMIT_SHORT_SHA} dcr.faked.org/chitui:${CI_COMMIT_TAG}