Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
342974c82d | ||
|
ac216f73c2 | ||
|
6355dd1224 | ||
|
177a427ac8 | ||
|
0b8f38d92b | ||
|
a208aa303b | ||
|
5563833070 | ||
|
a90d08954e | ||
|
22a5f402a4 |
42
.drone.yml
42
.drone.yml
@ -2,11 +2,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
- dev
|
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
@ -62,14 +57,39 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- "go-build-bin-amd64"
|
- "go-build-bin-amd64"
|
||||||
when:
|
when:
|
||||||
event:
|
|
||||||
- merge
|
|
||||||
- tag
|
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
# Build Containers for each architecture DEV
|
# Build Containers for each architecture DEV
|
||||||
- name: docker-build-image-amd64-dev
|
- name: docker-build-image-amd64-dev
|
||||||
|
image: thegeeklab/drone-docker-buildx
|
||||||
|
volumes:
|
||||||
|
- name: docker_socket
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
- name: binaries
|
||||||
|
path: /drone/src/binaries/
|
||||||
|
privileged: true
|
||||||
|
commands:
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: gitea_username
|
||||||
|
password:
|
||||||
|
from_secret: gitea_password
|
||||||
|
repo: gitea.voser.cloud/container/iwilldie
|
||||||
|
registry: https://gitea.voser.cloud
|
||||||
|
tags:
|
||||||
|
- latest-dev
|
||||||
|
platforms: linux/amd64
|
||||||
|
dockerfile: /drone/src/Docker/Dockerfile.amd64
|
||||||
|
nocache: true
|
||||||
|
depends_on:
|
||||||
|
- "go-build-bin-amd64"
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
# Build Containers for each architecture TAGGED
|
||||||
|
- name: docker-build-image-amd64-tagged
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
@ -86,7 +106,7 @@ steps:
|
|||||||
repo: gitea.voser.cloud/container/iwilldie
|
repo: gitea.voser.cloud/container/iwilldie
|
||||||
registry: https://gitea.voser.cloud
|
registry: https://gitea.voser.cloud
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: dev
|
auto_tag_suffix:
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
dockerfile: /drone/src/Docker/Dockerfile.amd64
|
dockerfile: /drone/src/Docker/Dockerfile.amd64
|
||||||
nocache: true
|
nocache: true
|
||||||
@ -94,10 +114,7 @@ steps:
|
|||||||
- "go-build-bin-amd64"
|
- "go-build-bin-amd64"
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
|
||||||
- tag
|
- tag
|
||||||
branch:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
# Run go tests
|
# Run go tests
|
||||||
- name: binary-cleanup
|
- name: binary-cleanup
|
||||||
@ -115,6 +132,7 @@ steps:
|
|||||||
- "go-build-bin-amd64"
|
- "go-build-bin-amd64"
|
||||||
- "docker-build-image-amd64-dev"
|
- "docker-build-image-amd64-dev"
|
||||||
- "docker-build-image-amd64-prod"
|
- "docker-build-image-amd64-prod"
|
||||||
|
- "docker-build-image-amd64-tagged"
|
||||||
|
|
||||||
|
|
||||||
# Volumes to mount between steps
|
# Volumes to mount between steps
|
||||||
|
2
LICENSE
2
LICENSE
@ -58,7 +58,7 @@ APPENDIX: How to apply the Apache License to your work.
|
|||||||
|
|
||||||
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
Copyright 2023 Janic Voser
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
# iwilldie
|
# iwilldie
|
||||||
|
|
||||||
This Repository exists to create a container which dies after some amount of time, this is usefull to test liveness probes in kubernetes.
|
This Repository exists to create a container which dies after some amount of time, this is usefull to test liveness probes in kubernetes.
|
||||||
|
|
||||||
|
# Current Build States
|
||||||
|
[](https://drone.voser.cloud/Container/iwilldie) => Development branch => dev
|
||||||
|
---
|
||||||
|
[](https://drone.voser.cloud/Container/iwilldie) => Main branch => latest
|
||||||
|
---
|
Loading…
x
Reference in New Issue
Block a user