Compare commits

..

No commits in common. "main" and "v0.0.3" have entirely different histories.
main ... v0.0.3

3 changed files with 12 additions and 38 deletions

View File

@ -2,6 +2,11 @@ kind: pipeline
type: docker type: docker
name: default name: default
trigger:
branch:
- main
- dev
platform: platform:
os: linux os: linux
arch: amd64 arch: amd64
@ -57,39 +62,13 @@ steps:
depends_on: depends_on:
- "go-build-bin-amd64" - "go-build-bin-amd64"
when: when:
event:
- 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
@ -106,7 +85,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: auto_tag_suffix: dev
platforms: linux/amd64 platforms: linux/amd64
dockerfile: /drone/src/Docker/Dockerfile.amd64 dockerfile: /drone/src/Docker/Dockerfile.amd64
nocache: true nocache: true
@ -115,6 +94,8 @@ steps:
when: when:
event: event:
- tag - tag
branch:
- dev
# Run go tests # Run go tests
- name: binary-cleanup - name: binary-cleanup
@ -132,7 +113,6 @@ 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

View File

@ -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 2023 Janic Voser Copyright [yyyy] [name of copyright owner]
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.

View File

@ -1,9 +1,3 @@
# 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
[![Build Status](https://drone.voser.cloud/api/badges/Container/iwilldie/status.svg?ref=refs/heads/dev)](https://drone.voser.cloud/Container/iwilldie) => Development branch => dev
---
[![Build Status](https://drone.voser.cloud/api/badges/Container/iwilldie/status.svg?ref=refs/heads/main)](https://drone.voser.cloud/Container/iwilldie) => Main branch => latest
---