fix(drone): resource limits
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2022-06-04 11:54:23 +02:00
parent 5fe18ba80a
commit ab8e0e5117
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -3,9 +3,8 @@ kind: pipeline
type: kubernetes type: kubernetes
name: latest name: latest
platform: node_selector:
os: linux kubernetes.io/arch: amd64
arch: amd64
steps: steps:
- name: build - name: build
@ -13,9 +12,12 @@ steps:
- make latexmk/index.pdf - make latexmk/index.pdf
image: docker.io/volkerraschek/latex:latest-archlinux image: docker.io/volkerraschek/latex:latest-archlinux
resources: resources:
requests:
cpu: 250
memory: 500M
limits: limits:
cpu: 500 cpu: 500
memory: 250M memory: 750M
- name: push-nextcloud - name: push-nextcloud
commands: commands:
@ -30,8 +32,8 @@ steps:
image: docker.io/volkerraschek/latex:latest-archlinux image: docker.io/volkerraschek/latex:latest-archlinux
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
- name: push-fhtrier - name: push-fhtrier
depends_on: depends_on:
@ -68,8 +70,8 @@ steps:
image: docker.io/drillster/drone-email:latest image: docker.io/drillster/drone-email:latest
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
when: when:
status: status:
- changed - changed
@ -89,9 +91,8 @@ kind: pipeline
type: kubernetes type: kubernetes
name: release name: release
platform: node_selector:
os: linux kubernetes.io/arch: amd64
arch: amd64
steps: steps:
- name: build - name: build
@ -101,9 +102,12 @@ steps:
VERSION: ${DRONE_TAG} VERSION: ${DRONE_TAG}
image: docker.io/volkerraschek/latex:latest-archlinux image: docker.io/volkerraschek/latex:latest-archlinux
resources: resources:
requests:
cpu: 250
memory: 500M
limits: limits:
cpu: 500 cpu: 500
memory: 250M memory: 750M
- name: push-nextcloud - name: push-nextcloud
commands: commands:
@ -116,15 +120,15 @@ steps:
image: docker.io/volkerraschek/latex:latest-archlinux image: docker.io/volkerraschek/latex:latest-archlinux
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
- name: push-gitea - name: push-gitea
image: docker.io/plugins/gitea-release:latest image: docker.io/plugins/gitea-release:latest
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
settings: settings:
base_url: https://git.cryptic.systems base_url: https://git.cryptic.systems
api_key: api_key:
@ -152,8 +156,8 @@ steps:
image: docker.io/drillster/drone-email:latest image: docker.io/drillster/drone-email:latest
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
when: when:
status: status:
- changed - changed
@ -179,52 +183,3 @@ trigger:
- tag - tag
repo: repo:
- fh-trier/linux_ws2122 - fh-trier/linux_ws2122
# ---
# kind: pipeline
# type: kubernetes
# name: sync
# platform:
# os: linux
# arch: amd64
# steps:
# - name: github
# image: docker.io/appleboy/drone-git-push:latest
# resources:
# limits:
# cpu: 50
# memory: 25M
# settings:
# branch: master
# remote: ssh://git@github.com/fh-trier/linux_ws2122.git
# force: true
# ssh_key:
# from_secret: ssh_key
# - name: email-notification
# environment:
# PLUGIN_HOST:
# from_secret: smtp_host
# PLUGIN_USERNAME:
# from_secret: smtp_username
# PLUGIN_PASSWORD:
# from_secret: smtp_password
# PLUGIN_FROM:
# from_secret: smtp_mail_address
# image: docker.io/drillster/drone-email:latest
# resources:
# limits:
# cpu: 50
# memory: 25M
# when:
# status:
# - changed
# - failure
# trigger:
# event:
# - push
# repo:
# - fh-trier/linux_ws2122