welp drones jsonnet support does seem to lack a few things
This commit is contained in:
		
							
								
								
									
										684
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										684
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -1,286 +1,632 @@ | |||||||
| - kind: pipeline | --- | ||||||
|   name: ubuntu-20.04build | kind: pipeline | ||||||
|   platform: | type: kubernetes | ||||||
|     arch: amd64 | name: build-debian | ||||||
|  |  | ||||||
|  | platform: | ||||||
|   os: linux |   os: linux | ||||||
|   steps: |   arch: amd64 | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: ubuntu-20.04 | steps: | ||||||
|     resources: |  | ||||||
|       limits: | - name: build-ubuntu-20 | ||||||
|         cpu: "200" |   image: plugins/kaniko | ||||||
|         memory: 1024MiB |  | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: ubuntu-20.04/Dockerfile |     dockerfile: ubuntu-20.04/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - ubuntu-20.04 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-20.04-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: ubuntu-18.04build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: ubuntu-18.04 |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-ubuntu-18 | ||||||
|  |   image: plugins/kaniko | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: ubuntu-18.04/Dockerfile |     dockerfile: ubuntu-18.04/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - ubuntu-18.04 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-18.04-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: ubuntu-14.04build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: ubuntu-14.04 |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-ubuntu-16 | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: ubuntu-16.04/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-16.04-dev | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - push | ||||||
|  |     - pull_request | ||||||
|  |     - cron | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-ubuntu-14 | ||||||
|  |   image: plugins/kaniko | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: ubuntu-14.04/Dockerfile |     dockerfile: ubuntu-14.04/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - ubuntu-14.04 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-14.04-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: debian-8build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: debian-8 |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-debian-8 | ||||||
|  |   image: plugins/kaniko | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: debian-8/Dockerfile |     dockerfile: debian-8/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - debian-8 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - debian-8-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: debian-9build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: debian-9 |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-debian-9 | ||||||
|  |   image: plugins/kaniko | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: debian-9/Dockerfile |     dockerfile: debian-9/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - debian-9 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - debian-9-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: debian-10build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: debian-10 |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-debian-10 | ||||||
|  |   image: plugins/kaniko | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: debian-10/Dockerfile |     dockerfile: debian-10/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - debian-10 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - debian-10-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: centos-7build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: centos-7 |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|     settings: |  | ||||||
|       dockerfile: centos-7/Dockerfile | --- | ||||||
|       password: | kind: pipeline | ||||||
|         from_secret: docker_password | type: kubernetes | ||||||
|       repo: lerentis/ansible | name: build-rhel | ||||||
|       tags: |  | ||||||
|       - centos-7 | platform: | ||||||
|       username: |  | ||||||
|         from_secret: docker_username |  | ||||||
|     when: |  | ||||||
|     - push |  | ||||||
|     - pull_request |  | ||||||
|     - cron |  | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: almalinux-8build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|   os: linux |   os: linux | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: almalinux-8 |  | ||||||
|     resources: |  | ||||||
|       limits: |  | ||||||
|         cpu: "200" |  | ||||||
|         memory: 1024MiB |  | ||||||
|     settings: |  | ||||||
|       dockerfile: almalinux-8/Dockerfile |  | ||||||
|       password: |  | ||||||
|         from_secret: docker_password |  | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - almalinux-8 |  | ||||||
|       username: |  | ||||||
|         from_secret: docker_username |  | ||||||
|     when: |  | ||||||
|     - push |  | ||||||
|     - pull_request |  | ||||||
|     - cron |  | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: fedora-24build |  | ||||||
|   platform: |  | ||||||
|   arch: amd64 |   arch: amd64 | ||||||
|     os: linux |  | ||||||
|   steps: | steps: | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: fedora-24 | - name: build-fedora-24 | ||||||
|     resources: |   image: plugins/kaniko | ||||||
|       limits: |  | ||||||
|         cpu: "200" |  | ||||||
|         memory: 1024MiB |  | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: fedora-24/Dockerfile |     dockerfile: fedora-24/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - fedora-24 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - fedora-24-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: alpine-3build |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: alpine-3 |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-almalinux-8 | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: almalinux-8/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - almalinux-8-dev | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - push | ||||||
|  |     - pull_request | ||||||
|  |     - cron | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-centos-7 | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: centos-7/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - centos-7-dev | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - push | ||||||
|  |     - pull_request | ||||||
|  |     - cron | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: build-alpine | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: build-alpine-3 | ||||||
|  |   image: plugins/kaniko | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: alpine-3/Dockerfile |     dockerfile: alpine-3/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - alpine-3 |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - alpine-3-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |  | ||||||
| - kind: pipeline |  | ||||||
|   name: archbuild |  | ||||||
|   platform: |  | ||||||
|     arch: amd64 |  | ||||||
|     os: linux |  | ||||||
|   steps: |  | ||||||
|   - image: plugins/kaniko |  | ||||||
|     name: arch |  | ||||||
|   resources: |   resources: | ||||||
|     limits: |     limits: | ||||||
|         cpu: "200" |       cpu: 200 | ||||||
|       memory: 1024MiB |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: build-arch | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: build-arch | ||||||
|  |   image: plugins/kaniko | ||||||
|   settings: |   settings: | ||||||
|     dockerfile: arch/Dockerfile |     dockerfile: arch/Dockerfile | ||||||
|     password: |     password: | ||||||
|       from_secret: docker_password |       from_secret: docker_password | ||||||
|       repo: lerentis/ansible |  | ||||||
|       tags: |  | ||||||
|       - arch |  | ||||||
|     username: |     username: | ||||||
|       from_secret: docker_username |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - arch-dev | ||||||
|   when: |   when: | ||||||
|  |     event: | ||||||
|     - push |     - push | ||||||
|     - pull_request |     - pull_request | ||||||
|     - cron |     - cron | ||||||
|   type: kubernetes |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: release-debian | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: build-ubuntu-20-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: ubuntu-20.04/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-20.04 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-ubuntu-18-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: ubuntu-18.04/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-18.04 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-ubuntu-16-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: ubuntu-16.04/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-16.04 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-ubuntu-14-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: ubuntu-14.04/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - ubuntu-14.04 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-debian-8-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: debian-8/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - debian-8 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-debian-9-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: debian-9/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - debian-9 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-debian-10-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: debian-10/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - debian-10 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: release-rhel | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: build-fedora-24-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: fedora-24/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - fedora-24 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-almalinux-8-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: almalinux-8/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - almalinux-8 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | - name: build-centos-7-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: centos-7/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - centos-7 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: release-alpine | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: build-alpine-3-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: alpine-3/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - alpine-3 | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: release-arch | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: build-arch-release | ||||||
|  |   image: plugins/kaniko | ||||||
|  |   settings: | ||||||
|  |     dockerfile: arch/Dockerfile | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     repo: lerentis/ansible | ||||||
|  |     tags:  | ||||||
|  |       - arch | ||||||
|  |   when: | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |   resources: | ||||||
|  |     limits: | ||||||
|  |       cpu: 200 | ||||||
|  |       memory: 1024MiB | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: notify-build | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: notify | ||||||
|  |   image: appleboy/drone-telegram | ||||||
|  |   settings: | ||||||
|  |     message: "Commit {{ commit.message }} ran with build {{ build.number }} and finished with status {{ build.status }}." | ||||||
|  |     to:  | ||||||
|  |       from_secret: telegram_userid | ||||||
|  |     token: | ||||||
|  |       from_secret: telegram_secret | ||||||
|  |   when: | ||||||
|  |     status: | ||||||
|  |     - failure | ||||||
|  |     - success | ||||||
|  |     event: | ||||||
|  |     - push | ||||||
|  |     - pull_request | ||||||
|  |     - cron | ||||||
|  | depends_on: | ||||||
|  |   - build-arch | ||||||
|  |   - build-alpine | ||||||
|  |   - build-debian | ||||||
|  |   - build-rhel | ||||||
|  |  | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: notify-release | ||||||
|  |  | ||||||
|  | platform: | ||||||
|  |   os: linux | ||||||
|  |   arch: amd64 | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  |  | ||||||
|  | - name: notify | ||||||
|  |   image: appleboy/drone-telegram | ||||||
|  |   settings: | ||||||
|  |     message: "Release {{ build.tag }} ran with build {{ build.number }} and finished with status {{ build.status }}." | ||||||
|  |     to:  | ||||||
|  |       from_secret: telegram_userid | ||||||
|  |     token: | ||||||
|  |       from_secret: telegram_secret | ||||||
|  |   when: | ||||||
|  |     status: | ||||||
|  |     - failure | ||||||
|  |     - success | ||||||
|  |     event: | ||||||
|  |     - tag | ||||||
|  |  | ||||||
|  | depends_on: | ||||||
|  |   - release-arch | ||||||
|  |   - release-alpine | ||||||
|  |   - release-debian | ||||||
|  |   - release-rhel | ||||||
		Reference in New Issue
	
	Block a user