diff --git a/.drone.yml b/.drone.yml index afe06d6..366ffd6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,9 +3,8 @@ kind: pipeline type: kubernetes name: latest -platform: - os: linux - arch: amd64 +node_selector: + kubernetes.io/arch: amd64 steps: - name: build @@ -13,9 +12,12 @@ steps: - make latexmk/index.pdf image: docker.io/volkerraschek/latex:latest-archlinux resources: + requests: + cpu: 250 + memory: 500M limits: cpu: 500 - memory: 250M + memory: 750M - name: push-nextcloud commands: @@ -30,8 +32,8 @@ steps: image: docker.io/volkerraschek/latex:latest-archlinux resources: limits: - cpu: 50 - memory: 25M + cpu: 150 + memory: 150M - name: push-fhtrier depends_on: @@ -68,8 +70,8 @@ steps: image: docker.io/drillster/drone-email:latest resources: limits: - cpu: 50 - memory: 25M + cpu: 150 + memory: 150M when: status: - changed @@ -89,9 +91,8 @@ kind: pipeline type: kubernetes name: release -platform: - os: linux - arch: amd64 +node_selector: + kubernetes.io/arch: amd64 steps: - name: build @@ -101,9 +102,12 @@ steps: VERSION: ${DRONE_TAG} image: docker.io/volkerraschek/latex:latest-archlinux resources: + requests: + cpu: 250 + memory: 500M limits: cpu: 500 - memory: 250M + memory: 750M - name: push-nextcloud commands: @@ -116,15 +120,15 @@ steps: image: docker.io/volkerraschek/latex:latest-archlinux resources: limits: - cpu: 50 - memory: 25M + cpu: 150 + memory: 150M - name: push-gitea image: docker.io/plugins/gitea-release:latest resources: limits: - cpu: 50 - memory: 25M + cpu: 150 + memory: 150M settings: base_url: https://git.cryptic.systems api_key: @@ -152,8 +156,8 @@ steps: image: docker.io/drillster/drone-email:latest resources: limits: - cpu: 50 - memory: 25M + cpu: 150 + memory: 150M when: status: - changed @@ -179,52 +183,3 @@ trigger: - tag repo: - 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