ADD: initial commit
continuous-integration/drone Build is failing Details

This commit is contained in:
Dominik Meyer 2024-02-11 11:46:02 +01:00
commit 6647e32630
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
3 changed files with 139 additions and 0 deletions

82
.drone.yml Normal file
View File

@ -0,0 +1,82 @@
kind: pipeline
type: kubernetes
name: build-amd64
platform:
arch: amd64
node_selector:
kubernetes.io/arch: amd64
volumes:
- name: fedhq-ca-crt
config_map:
name: fedhq-ca-crt
default_mode: 420 # same as 644 in octal, or u+w,a+r
optional: false
steps:
- name: build amd64
image: quay.io/buildah/stable
privileged: true
volumes:
- name: fedhq-ca-crt
path: /etc/ssl/certs2/
commands:
- scripts/setupEnvironment.sh
- buildah bud --network host -t "registry.cloud.federationhq.de/redmine:latest-amd64" --arch amd64 .
- buildah push --all registry.cloud.federationhq.de/redmine:latest-amd64
---
kind: pipeline
type: kubernetes
name: build-arm64
platform:
arch: arm64
node_selector:
kubernetes.io/arch: arm64
volumes:
- name: fedhq-ca-crt
config_map:
name: fedhq-ca-crt
default_mode: 420 # same as 644 in octal, or u+w,a+r
optional: false
steps:
- name: build arm64
image: quay.io/buildah/stable
privileged: true
volumes:
- name: fedhq-ca-crt
path: /etc/ssl/certs2/
commands:
- scripts/setupEnvironment.sh
- buildah bud --network host -t "registry.cloud.federationhq.de/redmine:latest-arm64" --arch arm64 .
- buildah push --all registry.cloud.federationhq.de/redmine:latest-arm64
---
kind: pipeline
type: kubernetes
name: push
node_selector:
kubernetes.io/arch: amd64
volumes:
- name: fedhq-ca-crt
config_map:
name: fedhq-ca-crt
default_mode: 420 # same as 644 in octal, or u+w,a+r
optional: false
steps:
- name: push
image: quay.io/buildah/stable
privileged: true
volumes:
- name: fedhq-ca-crt
path: /etc/ssl/certs2/
commands:
- scripts/setupEnvironment.sh
- buildah manifest create redmine:latest registry.cloud.federationhq.de/redmine:latest-arm64 registry.cloud.federationhq.de/redmine:latest-amd64
- buildah manifest push --all redmine:latest docker://registry.cloud.federationhq.de/redmine:latest
- buildah manifest rm redmine:latest
depends_on:
- build-amd64
- build-arm64

54
Containerfile Normal file
View File

@ -0,0 +1,54 @@
FROM redmine:5.1
RUN apt-get -qy update && apt-get -qy upgrade && apt-get -qy install git
RUN cd /usr/src/redmine/plugins;git clone https://github.com/Ilogeek/redmine_issue_dynamic_edit.git
RUN cd /usr/src/redmine/plugins;git clone https://github.com/akpaevj/dashboard.git
RUN cd /usr/src/redmine/plugins;git clone https://github.com/haru/redmine_wiki_extensions.git; cd redmine_wiki_extensions; git checkout 0.9.5
RUN cd /usr/src/redmine/plugins;git clone -b stable https://www.github.com/alphanodes/additionals.git
RUN cd /usr/src/redmine/plugins;git clone -b stable https://www.github.com/alphanodes/additional_tags.git
RUN apt-get -qy install unzip
RUN cd /usr/src/redmine/plugins;wget https://redmine-kanban.com/files/redmine_kanban.zip; unzip redmine_kanban.zip
RUN cd /usr/src/redmine/plugins;git clone https://github.com/mikitex70/redmine_drawio.git
RUN cd /usr/src/redmine/plugins;git clone https://github.com/alphanodes/redmine_messenger.git
RUN cd /usr/src/redmine/plugins;wget https://redmine.ociotec.com/attachments/download/581/scrum-0.23.1.tar.gz; tar zxf scrum-0.23.1.tar.gz
#RUN cd /usr/src/redmine/plugins;git clone https://github.com/cryptogopher/issue_recurring.git
RUN cd /usr/src/redmine/plugins;git clone https://github.com/cat-in-136/redmine_hearts.git
RUN cd /usr/src/redmine/plugins;git clone https://github.com/wellbia/redmine_microsoftteams.git redmine_microsoftteams
RUN cd /usr/src/redmine/plugins;git clone https://github.com/redmica/redmica_ui_extension.git
RUN cd /usr/src/redmine/plugins;git clone https://github.com/onozaty/redmine-view-customize.git view_customize
RUN cd /usr/src/redmine/plugins;git clone https://github.com/haru/redmine_theme_changer.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/mrliptontea/PurpleMine2.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/farend/redmine_theme_farend_bleuclair.git bleuclair
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/fraoustin/redmine_dark.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/fraoustin/RTMaterial.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/jbbarth/redmine_theme_ministere.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/Intera/redmine_theme_intera.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/knt419/material.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/letuankhoipm/qkit-redmine-rezii.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/makotokw/redmine-theme-gitmike.git
RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/alexcode-cc/redmine-theme-dwarf-build.git
RUN cd /usr/src/redmine/plugins;git clone https://gitea.federationhq.de/byterazor/redmine-git-remote.git redmine_git_remote
RUN cd /usr/src/redmine/plugins;git clone https://gitea.federationhq.de/byterazor/redmine_glossary.git

3
scripts/setupEnvironment.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cp /etc/ssl/certs2/federationHQ-CA.pem /etc/pki/ca-trust/source/anchors/
update-ca-trust