replace nextcloud image building with forgejo-actions
This commit is contained in:
parent
873d51c7b9
commit
897ed85813
2 changed files with 39 additions and 78 deletions
39
.forgejo/workflows/build_nextcloud.yml
Normal file
39
.forgejo/workflows/build_nextcloud.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: Build Nextcloud
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
push: {}
|
||||
schedule:
|
||||
- cron: "@daily"
|
||||
|
||||
jobs:
|
||||
build-container:
|
||||
name: Build Container
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/osscontainertools/kaniko:alpine
|
||||
strategy:
|
||||
matrix:
|
||||
nextcloud-version: [ 30, 31, 32 ]
|
||||
steps:
|
||||
- name: Install required system packages
|
||||
run: apk add --no-cache nodejs
|
||||
|
||||
- name: Build Container
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Build Container
|
||||
env:
|
||||
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
|
||||
KANIKO_GIT_HAMBURG_CCC_DE_USER: forgejo-actions
|
||||
KANIKO_GIT_HAMBURG_CCC_DE_PASSWORD: ${{ secrets.PACKAGES_TOKEN }}
|
||||
run: /kaniko/executor
|
||||
--dockerfile="${{forgejo.workspace }}/Containerfile"
|
||||
--context="dir://${{ forgejo.workspace }}/nextcloud"
|
||||
--build-arg=TAG=${{ matrix.nextcloud-version }}
|
||||
--destination=git.hamburg.ccc.de/ccchh/oci-images/nextcloud:${{ matrix.nextcloud-version }}
|
||||
--no-push-cache
|
||||
--credential-helpers=env
|
||||
--annotation=org.opencontainers.image.ref.name=nextcloud
|
||||
--annotation=org.opencontainers.image.url=${{ forgejo.server_url }}/${{ forgejo.repository }}
|
||||
--annotation=org.opencontainers.image.source=${{ forgejo.server_url }}/${{ forgejo.repository }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue