Compare commits

..

1 commit

Author SHA1 Message Date
bcbb27f9ae
testing
All checks were successful
ci/woodpecker/push/penpot/1 Pipeline was successful
ci/woodpecker/push/penpot/2 Pipeline was successful
ci/woodpecker/push/penpot/3 Pipeline was successful
2024-08-10 20:40:03 +02:00
5 changed files with 24 additions and 66 deletions

View file

@ -19,8 +19,7 @@ workspace:
# Also because global environment variables aren't a thing. # Also because global environment variables aren't a thing.
matrix: matrix:
KEYCLOAK_VERSION: KEYCLOAK_VERSION:
# renovate: datasource=docker depName=quay.io/keycloak/keycloak - 25.0
- 26.6.0
IMAGE_NAME: IMAGE_NAME:
- git.hamburg.ccc.de/ccchh/oci-images/keycloak - git.hamburg.ccc.de/ccchh/oci-images/keycloak
@ -30,15 +29,6 @@ steps:
commands: commands:
- mkdir /woodpecker/images - mkdir /woodpecker/images
- name: build-attribute-endpoints-provider
image: alpine
commands:
- apk -u add maven git
- git clone https://git.hamburg.ccc.de/CCCHH/keycloak-attribute-endpoints-provider.git
- cd keycloak-attribute-endpoints-provider
- mvn -f attribute-endpoints-provider verify
- cp attribute-endpoints-provider/target/attribute-endpoints-provider-1.0-SNAPSHOT.jar /woodpecker/src/keycloak/attribute-endpoints-provider.jar
- name: build-image - name: build-image
image: gcr.io/kaniko-project/executor image: gcr.io/kaniko-project/executor
entrypoint: entrypoint:
@ -52,9 +42,8 @@ steps:
- name: publish-image - name: publish-image
image: alpine image: alpine
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
@ -64,9 +53,8 @@ steps:
image: alpine image: alpine
when: when:
- branch: main - branch: main
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
@ -76,9 +64,9 @@ steps:
image: alpine image: alpine
when: when:
- branch: main - branch: main
environment: evaluate: 'KEYCLOAK_VERSION == "25.0"'
GIT_API_TOKEN: secrets:
from_secret: GIT_API_TOKEN - GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN

View file

@ -19,9 +19,8 @@ workspace:
# Also because global environment variables aren't a thing. # Also because global environment variables aren't a thing.
matrix: matrix:
NEXTCLOUD_VERSION: NEXTCLOUD_VERSION:
- 30 - 28
- 31 - 29
- 32
IMAGE_NAME: IMAGE_NAME:
- git.hamburg.ccc.de/ccchh/oci-images/nextcloud - git.hamburg.ccc.de/ccchh/oci-images/nextcloud
@ -44,9 +43,8 @@ steps:
- name: publish-image - name: publish-image
image: docker.io/library/alpine image: docker.io/library/alpine
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
@ -56,9 +54,8 @@ steps:
image: docker.io/library/alpine image: docker.io/library/alpine
when: when:
- branch: main - branch: main
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
@ -68,10 +65,9 @@ steps:
image: docker.io/library/alpine image: docker.io/library/alpine
when: when:
- branch: main - branch: main
evaluate: 'NEXTCLOUD_VERSION == "29"' evaluate: 'NEXTCLOUD_VERSION == "28"'
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN

View file

@ -44,10 +44,7 @@ steps:
# https://github.com/penpot/penpot/pull/4945 # https://github.com/penpot/penpot/pull/4945
# https://github.com/penpot/penpot/pull/4945/commits/752574bac789cc90cc218004bb9545cc6239895d # https://github.com/penpot/penpot/pull/4945/commits/752574bac789cc90cc218004bb9545cc6239895d
- curl https://github.com/penpot/penpot/commit/752574bac789cc90cc218004bb9545cc6239895d.patch > 0001-move-entire-image-build-process-into-Dockerfiles.patch - curl https://github.com/penpot/penpot/commit/752574bac789cc90cc218004bb9545cc6239895d.patch > 0001-move-entire-image-build-process-into-Dockerfiles.patch
# Get patch disallowing registration with invitation token, when disable-login-with-password flag is set. - curl https://github.com/june128/penpot/commit/4d5c787478ddc612aec4d25b2f059d63a226a6d1.patch > 0002-testing.patch
# https://github.com/penpot/penpot/issues/4975
# https://github.com/june128/penpot/commit/f799da132bf5a51015859031f45154172fbf7cd0
- curl https://github.com/june128/penpot/commit/f799da132bf5a51015859031f45154172fbf7cd0.patch > 0002-hotfix-dont-allow-registration-with-invite-if-password-login-is-disabled.patch
- git config user.name "Woodpecker" - git config user.name "Woodpecker"
- git config user.email "woodpecker@woodpecker.invalid" - git config user.email "woodpecker@woodpecker.invalid"
- git am *.patch - git am *.patch
@ -64,9 +61,8 @@ steps:
- name: publish-image - name: publish-image
image: docker.io/library/alpine image: docker.io/library/alpine
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
@ -76,9 +72,8 @@ steps:
image: docker.io/library/alpine image: docker.io/library/alpine
when: when:
- branch: main - branch: main
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
@ -89,9 +84,8 @@ steps:
when: when:
- branch: main - branch: main
evaluate: 'PENPOT_VERSION == "2.1.2"' evaluate: 'PENPOT_VERSION == "2.1.2"'
environment: secrets:
GIT_API_TOKEN: - GIT_API_TOKEN
from_secret: GIT_API_TOKEN
commands: commands:
- apk -u add crane - apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN

View file

@ -2,10 +2,8 @@ ARG TAG=latest
FROM quay.io/keycloak/keycloak:${TAG} as builder FROM quay.io/keycloak/keycloak:${TAG} as builder
ENV KC_DB=postgres ENV KC_DB=postgres
ENV KC_FEATURES=declarative-ui
WORKDIR /opt/keycloak WORKDIR /opt/keycloak
ADD --chown=keycloak:keycloak --chmod=644 attribute-endpoints-provider.jar /opt/keycloak/providers/attribute-endpoints-provider.jar
RUN /opt/keycloak/bin/kc.sh build RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:${TAG} FROM quay.io/keycloak/keycloak:${TAG}

View file

@ -1,18 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"customManagers": [
// Custom manager using regex for letting Renovate find dependencies in woodpecker Matrix variables.
{
"customType": "regex",
"managerFilePatterns": [
"/^\\.woodpecker/.*\\.ya?ml$/"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-zA-Z0-9-._]+?) depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?\\s*-\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
]
}
]
}