2019-04-22 14:02:18 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: dry-run-base
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
context: docker/base
|
|
|
|
dockerfile: docker/base/Dockerfile
|
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
|
|
|
tags: base
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
2020-04-07 09:28:48 +02:00
|
|
|
- name: dry-run-go-1.14.1
|
2019-04-22 14:02:18 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2020-04-07 09:28:48 +02:00
|
|
|
context: docker/go-1.14.1
|
|
|
|
dockerfile: docker/go-1.14.1/Dockerfile
|
2019-04-22 14:02:18 +02:00
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
2020-04-07 09:28:48 +02:00
|
|
|
tags: go-1.14.1
|
2019-04-22 14:02:18 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
2020-04-07 09:28:48 +02:00
|
|
|
depends_on:
|
|
|
|
- dry-run-base
|
2019-04-22 14:02:18 +02:00
|
|
|
|
2020-04-07 09:28:48 +02:00
|
|
|
- name: dry-run-go-1.13.9
|
2019-04-22 14:02:18 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2020-04-07 09:28:48 +02:00
|
|
|
context: docker/go-1.13.9
|
|
|
|
dockerfile: docker/go-1.13.9/Dockerfile
|
2019-04-22 14:02:18 +02:00
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
2020-04-07 09:28:48 +02:00
|
|
|
tags: go-1.13.9
|
2019-04-22 14:02:18 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
2020-04-07 09:28:48 +02:00
|
|
|
depends_on:
|
|
|
|
- dry-run-base
|
2019-04-22 14:02:18 +02:00
|
|
|
|
|
|
|
- name: build-base
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
context: docker/base
|
|
|
|
dockerfile: docker/base/Dockerfile
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
|
|
|
tags: base
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
|
2020-04-07 09:28:48 +02:00
|
|
|
- name: build-go-1.14.1
|
2019-04-22 14:02:18 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2020-04-07 09:28:48 +02:00
|
|
|
context: docker/go-1.14.1
|
|
|
|
dockerfile: docker/go-1.14.1/Dockerfile
|
2019-04-22 14:02:18 +02:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
2020-04-07 09:28:48 +02:00
|
|
|
tags: go-1.14.1
|
2019-04-22 14:02:18 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-04-07 09:28:48 +02:00
|
|
|
depends_on:
|
|
|
|
- build-base
|
2019-04-22 14:02:18 +02:00
|
|
|
|
2020-04-07 09:28:48 +02:00
|
|
|
- name: build-go-1.14.x
|
2019-04-22 14:02:18 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2020-04-07 09:28:48 +02:00
|
|
|
context: docker/go-1.14.x
|
|
|
|
dockerfile: docker/go-1.14.x/Dockerfile
|
2019-04-22 14:02:18 +02:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
2020-04-07 09:28:48 +02:00
|
|
|
tags: go-1.14.x
|
2019-04-22 14:02:18 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-04-07 09:28:48 +02:00
|
|
|
depends_on:
|
|
|
|
- build-go-1.14.1
|
2019-04-22 14:02:18 +02:00
|
|
|
|
2020-04-07 09:28:48 +02:00
|
|
|
- name: build-go-1.13.9
|
2019-05-07 21:42:24 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2020-04-07 09:28:48 +02:00
|
|
|
context: docker/go-1.13.9
|
|
|
|
dockerfile: docker/go-1.13.9/Dockerfile
|
2019-05-07 21:42:24 +02:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
2020-04-07 09:28:48 +02:00
|
|
|
tags: go-1.13.9
|
2019-05-07 21:42:24 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-04-07 09:28:48 +02:00
|
|
|
depends_on:
|
|
|
|
- build-base
|
2019-05-07 21:42:24 +02:00
|
|
|
|
2020-04-07 09:28:48 +02:00
|
|
|
- name: build-go-1.13.x
|
2019-04-22 14:02:18 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2020-04-07 09:28:48 +02:00
|
|
|
context: docker/go-1.13.x
|
|
|
|
dockerfile: docker/go-1.13.x/Dockerfile
|
2019-04-22 14:02:18 +02:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
2020-04-07 09:28:48 +02:00
|
|
|
tags: go-1.13.x
|
2019-04-22 14:02:18 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-04-07 09:28:48 +02:00
|
|
|
depends_on:
|
|
|
|
- build-go-1.13.9
|
2019-04-22 14:02:18 +02:00
|
|
|
|
2020-04-07 09:28:48 +02:00
|
|
|
- name: build-go-latest
|
2019-04-22 14:02:18 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2020-04-07 09:28:48 +02:00
|
|
|
context: docker/go-latest
|
|
|
|
dockerfile: docker/go-latest/Dockerfile
|
2019-04-22 14:02:18 +02:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: techknowlogick/xgo
|
2020-04-07 09:28:48 +02:00
|
|
|
tags: latest
|
2019-04-22 14:02:18 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2020-04-07 09:28:48 +02:00
|
|
|
depends_on:
|
|
|
|
- build-go-1.14.x
|
2019-04-22 14:02:18 +02:00
|
|
|
|
|
|
|
...
|