Compare commits

..

8 commits

Author SHA1 Message Date
christian 6023af9f0f
nextcloud: Remove version 28 add version 30
All checks were successful
ci/woodpecker/push/nextcloud/1 Pipeline was successful
ci/woodpecker/push/nextcloud/2 Pipeline was successful
ci/woodpecker/cron/keycloak/1 Pipeline was successful
ci/woodpecker/cron/keycloak/2 Pipeline was successful
ci/woodpecker/cron/nextcloud/2 Pipeline was successful
ci/woodpecker/cron/nextcloud/1 Pipeline was successful
ci/woodpecker/cron/penpot/2 Pipeline was successful
ci/woodpecker/cron/penpot/3 Pipeline was successful
ci/woodpecker/cron/penpot/1 Pipeline was successful
2024-10-31 23:22:48 +01:00
christian 8dbb9c64b3
Build Keycloak image with version 26
All checks were successful
ci/woodpecker/push/keycloak/1 Pipeline was successful
ci/woodpecker/push/keycloak/2 Pipeline was successful
ci/woodpecker/cron/nextcloud/2 Pipeline was successful
ci/woodpecker/cron/nextcloud/1 Pipeline was successful
ci/woodpecker/cron/keycloak/1 Pipeline was successful
ci/woodpecker/cron/keycloak/2 Pipeline was successful
ci/woodpecker/cron/penpot/2 Pipeline was successful
ci/woodpecker/cron/penpot/3 Pipeline was successful
ci/woodpecker/cron/penpot/1 Pipeline was successful
2024-10-04 16:19:02 +02:00
June 98175014f9
penpot: add patch disallow. reg. with invite, if pass. login is disabled
All checks were successful
ci/woodpecker/push/penpot/2 Pipeline was successful
ci/woodpecker/push/penpot/3 Pipeline was successful
ci/woodpecker/push/penpot/1 Pipeline was successful
ci/woodpecker/cron/keycloak Pipeline was successful
ci/woodpecker/cron/nextcloud/2 Pipeline was successful
ci/woodpecker/cron/nextcloud/1 Pipeline was successful
ci/woodpecker/cron/penpot/2 Pipeline was successful
ci/woodpecker/cron/penpot/1 Pipeline was successful
ci/woodpecker/cron/penpot/3 Pipeline was successful
2024-08-10 22:02:21 +02:00
June a4a0af5d65
penpot: introduce ci for building custom penpot images
All checks were successful
ci/woodpecker/push/penpot/2 Pipeline was successful
ci/woodpecker/push/penpot/3 Pipeline was successful
ci/woodpecker/push/penpot/1 Pipeline was successful
This is in preparation for building penpot images with custom patches
applied.
2024-08-10 20:39:10 +02:00
June 2906ee45d8
organize the image publishing/tagging process better
All checks were successful
ci/woodpecker/push/keycloak Pipeline was successful
ci/woodpecker/push/nextcloud/2 Pipeline was successful
ci/woodpecker/push/nextcloud/1 Pipeline was successful
Every image gets pushed with a unique version-branch tag by default and
then the version and latest tags get only tagged from the main branch
and the main branch and the desired version respectively.
2024-08-10 19:16:52 +02:00
christian 6783e974b9
keycloak: fix login theme for mobile
All checks were successful
ci/woodpecker/push/keycloak Pipeline was successful
ci/woodpecker/cron/nextcloud/2 Pipeline was successful
ci/woodpecker/cron/nextcloud/1 Pipeline was successful
ci/woodpecker/cron/keycloak Pipeline was successful
2024-07-29 22:20:59 +02:00
christian c9f1ead418
Add Nextcloud image to README.md 2024-07-29 21:51:01 +02:00
christian 99cce09ef6
Squashed commit of the following:
All checks were successful
ci/woodpecker/push/nextcloud/2 Pipeline was successful
ci/woodpecker/push/nextcloud/1 Pipeline was successful
commit 59d03f97a3
Author: c6ristian <c6ristian@christian.moe>
Date:   Mon Jul 29 20:15:58 2024 +0200

    explain why the COPY step exists

commit 2fd26d6f6f
Author: c6ristian <c6ristian@christian.moe>
Date:   Mon Jul 29 19:55:52 2024 +0200

    no keep var run

commit cc2f0cdc81
Author: c6ristian <c6ristian@christian.moe>
Date:   Mon Jul 29 19:53:52 2024 +0200

    no keep var log

commit 88569e05f5
Author: c6ristian <c6ristian@christian.moe>
Date:   Mon Jul 29 19:46:31 2024 +0200

    COPY .keep

commit 1eca984167
Author: c6ristian <c6ristian@christian.moe>
Date:   Mon Jul 29 19:21:50 2024 +0200

    nextcloud: try a .keep file to save the folder
2024-07-29 21:28:58 +02:00
5 changed files with 134 additions and 12 deletions

View file

@ -20,6 +20,7 @@ workspace:
matrix: matrix:
KEYCLOAK_VERSION: KEYCLOAK_VERSION:
- 25.0 - 25.0
- 26.0
IMAGE_NAME: IMAGE_NAME:
- git.hamburg.ccc.de/ccchh/oci-images/keycloak - git.hamburg.ccc.de/ccchh/oci-images/keycloak
@ -28,6 +29,7 @@ steps:
image: alpine image: alpine
commands: commands:
- mkdir /woodpecker/images - mkdir /woodpecker/images
- name: build-image - name: build-image
image: gcr.io/kaniko-project/executor image: gcr.io/kaniko-project/executor
entrypoint: entrypoint:
@ -38,6 +40,7 @@ steps:
- --destination=${IMAGE_NAME}:${KEYCLOAK_VERSION} - --destination=${IMAGE_NAME}:${KEYCLOAK_VERSION}
- --no-push - --no-push
- --tar-path=/woodpecker/images/keycloak.tar - --tar-path=/woodpecker/images/keycloak.tar
- name: publish-image - name: publish-image
image: alpine image: alpine
secrets: secrets:
@ -45,16 +48,27 @@ steps:
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
- crane push /woodpecker/images/keycloak.tar $IMAGE_NAME:$KEYCLOAK_VERSION - crane push /woodpecker/images/keycloak.tar $IMAGE_NAME:$KEYCLOAK_VERSION-$CI_COMMIT_BRANCH
- name: tag-branch-and-latest
- name: tag-version
image: alpine image: alpine
when: when:
- branch: main - branch: main
- evaluate: 'KEYCLOAK_VERSION == "25.0"'
secrets: secrets:
- 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
- crane tag $IMAGE_NAME:$KEYCLOAK_VERSION $CI_COMMIT_BRANCH - crane tag $IMAGE_NAME:$KEYCLOAK_VERSION-$CI_COMMIT_BRANCH $KEYCLOAK_VERSION
- crane tag $IMAGE_NAME:$KEYCLOAK_VERSION latest
- name: tag-latest
image: alpine
when:
- branch: main
evaluate: 'KEYCLOAK_VERSION == "26.0"'
secrets:
- GIT_API_TOKEN
commands:
- apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
- crane tag $IMAGE_NAME:$KEYCLOAK_VERSION-$CI_COMMIT_BRANCH latest

View file

@ -19,8 +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:
- 28
- 29 - 29
- 30
IMAGE_NAME: IMAGE_NAME:
- git.hamburg.ccc.de/ccchh/oci-images/nextcloud - git.hamburg.ccc.de/ccchh/oci-images/nextcloud
@ -48,9 +48,20 @@ steps:
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
- crane push /woodpecker/images/nextcloud.tar $IMAGE_NAME:$NEXTCLOUD_VERSION - crane push /woodpecker/images/nextcloud.tar $IMAGE_NAME:$NEXTCLOUD_VERSION-$CI_COMMIT_BRANCH
- name: tag-branch-and-latest - name: tag-version
image: docker.io/library/alpine
when:
- branch: main
secrets:
- GIT_API_TOKEN
commands:
- apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
- crane tag $IMAGE_NAME:$NEXTCLOUD_VERSION-$CI_COMMIT_BRANCH $NEXTCLOUD_VERSION
- name: tag-latest
image: docker.io/library/alpine image: docker.io/library/alpine
when: when:
- branch: main - branch: main
@ -60,5 +71,4 @@ steps:
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
- crane tag $IMAGE_NAME:$NEXTCLOUD_VERSION $CI_COMMIT_BRANCH - crane tag $IMAGE_NAME:$NEXTCLOUD_VERSION-$CI_COMMIT_BRANCH latest
- crane tag $IMAGE_NAME:$NEXTCLOUD_VERSION latest

95
.woodpecker/penpot.yaml Normal file
View file

@ -0,0 +1,95 @@
when:
- event: push
path:
- 'penpot/**'
- '.woodpecker/penpot.yaml'
- event: cron
cron: daily
# Manually set a workspace path, so we can use it literally, without using
# ${CI_WORKSPACE}, when running kaniko, since using ${CI_WORKSPACE} doesn't work.
# https://github.com/woodpecker-ci/woodpecker/issues/3982
workspace:
path: src
# Use matrix to set PENPOT_VERSION instead of setting the PENPOT_VERSION as an
# environment variable in the build-images step, since string substitution
# doesn't work for custom environment variables.
# https://github.com/woodpecker-ci/woodpecker/issues/3983
# Also because global environment variables aren't a thing.
matrix:
PENPOT_VERSION:
- 2.1.2
IMAGE_BASE_NAME:
- git.hamburg.ccc.de/ccchh/oci-images/penpot
IMAGE_TYPE:
- frontend
- backend
- exporter
steps:
- name: setup-image-path
image: alpine
commands:
- mkdir /woodpecker/images
- name: setup-penpot-repo
image: alpine
commands:
- apk -u add git curl
- git clone --branch $PENPOT_VERSION https://github.com/penpot/penpot.git /woodpecker/penpot
- cd /woodpecker/penpot
- git submodule update --init --recursive
# Get build system patch allowing for building images with kaniko.
# https://github.com/penpot/penpot/pull/4945
# 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
# Get patch disallowing registration with invitation token, when disable-login-with-password flag is set.
# 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.email "woodpecker@woodpecker.invalid"
- git am *.patch
- name: build-image
image: gcr.io/kaniko-project/executor
entrypoint:
- /kaniko/executor
- --context=dir:///woodpecker/penpot
- --dockerfile=./docker/images/Dockerfile.${IMAGE_TYPE}
- --destination=${IMAGE_BASE_NAME}/${IMAGE_TYPE}:${PENPOT_VERSION}
- --no-push
- --tar-path=/woodpecker/images/penpot-${IMAGE_TYPE}.tar
- name: publish-image
image: docker.io/library/alpine
secrets:
- GIT_API_TOKEN
commands:
- apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
- crane push /woodpecker/images/penpot-$IMAGE_TYPE.tar $IMAGE_BASE_NAME/$IMAGE_TYPE:$PENPOT_VERSION-$CI_COMMIT_BRANCH
- name: tag-version
image: docker.io/library/alpine
when:
- branch: main
secrets:
- GIT_API_TOKEN
commands:
- apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
- crane tag $IMAGE_BASE_NAME/$IMAGE_TYPE:$PENPOT_VERSION-$CI_COMMIT_BRANCH $PENPOT_VERSION
- name: tag-latest
image: docker.io/library/alpine
when:
- branch: main
evaluate: 'PENPOT_VERSION == "2.1.2"'
secrets:
- GIT_API_TOKEN
commands:
- apk -u add crane
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
- crane tag $IMAGE_BASE_NAME/$IMAGE_TYPE:$PENPOT_VERSION-$CI_COMMIT_BRANCH latest

View file

@ -11,3 +11,7 @@ Tools in use:
## Images ## Images
- `git.hamburg.ccc.de/CCCHH/oci-images/keycloak` - `git.hamburg.ccc.de/CCCHH/oci-images/keycloak`
- `git.hamburg.ccc.de/CCCHH/oci-images/nextcloud`
- `git.hamburg.ccc.de/CCCHH/oci-images/penpot/frontend`
- `git.hamburg.ccc.de/CCCHH/oci-images/penpot/backend`
- `git.hamburg.ccc.de/CCCHH/oci-images/penpot/exporter`

View file

@ -8,8 +8,7 @@ div.kc-logo-text {
background: url("../../img/CCCHH.svg") no-repeat center center; background: url("../../img/CCCHH.svg") no-repeat center center;
background-size: contain; background-size: contain;
filter: invert(1); filter: invert(1);
height: 126px; height: 100px;
width: 600px;
} }
div.kc-logo-text span { div.kc-logo-text span {