Skip to content

Instantly share code, notes, and snippets.

@rawlingsj
Created February 26, 2019 09:35
Show Gist options
  • Save rawlingsj/46dc08b83aa284521e4dea293d86c67b to your computer and use it in GitHub Desktop.
Save rawlingsj/46dc08b83aa284521e4dea293d86c67b to your computer and use it in GitHub Desktop.
pipelineConfig:
pipelines:
release:
pipeline:
agent:
image: rawlingsj/executor:dev31
stages:
- name: next-version
environment:
- name: GIT_COMMITTER_EMAIL
value: [email protected]
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot-test
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot-test
steps:
- agent:
image: jenkinsxio/jx:1.3.925
command: jx
args:
- step
- next-version
- -t
- --use-git-tag-only
- agent:
image: bash:5.0.2
command: cat
args:
- VERSION
- agent:
image: centos:7
command: ./replace-versions.sh
# - agent:
# image: gcr.io/kaniko-project/executor:v0.9.0
# command: /kaniko/executor
# args:
# - --dockerfile=Dockerfile.base
# - --destination=docker.io/warrenbailey/jenkins-base:$(cat VERSION)
# - --context=jenkins-base
# - --cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000
# - --cache=true
# - --cache-dir=/workspace
# - --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000
- command: /bin/bash
args: ['-c','/kaniko/executor --dockerfile=Dockerfile.base --destination=docker.io/warrenbailey/jenkins-base:$(cat VERSION) --context=/workspace/workspace--cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/ --cache=true --cache-dir=/workspace --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000']
- command: /kaniko/warmer
args:
- --cache-dir=/workspace
- --image=docker.io/warrenbailey/jenkins-base
- command: /bin/bash
args: ['-c','/kaniko/executor --dockerfile=Dockerfile.maven --destination=docker.io/warrenbailey/jenkins-maven:$(cat VERSION) --context=/workspace/workspace--cache-repo=jenkins-x-docker-registry.jx.svc.cluster.local:5000/ --cache=true --cache-dir=/workspace --skip-tls-verify-registry=jenkins-x-docker-registry.jx.svc.cluster.local:5000']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment