Compare commits

...

5 commits

Author SHA1 Message Date
5759f1213f
remove ci debug
Some checks failed
Build Container / Build Container (push) Failing after 32s
2026-05-14 19:36:06 +02:00
06849aa76a
debug ci
Some checks failed
Build Container / Build Container (push) Failing after 5s
2026-05-14 19:31:02 +02:00
60a7f5dc44
debug ci
Some checks failed
Build Container / Build Container (push) Failing after 2s
2026-05-14 19:30:05 +02:00
c63537e0ed
allow users to trigger container building in CI
Some checks failed
Build Container / Build Container (push) Failing after 32s
2026-05-14 19:16:21 +02:00
0ea8d656a2
fix CI not being allowed to push container image
Some checks failed
Build Container / Build Container (push) Failing after 33s
2026-05-14 19:12:20 +02:00

View file

@ -1,11 +1,9 @@
name: Build Container
on:
workflow_dispatch: {}
push: {}
permissions:
packages: write
jobs:
build-container:
name: Build Container
@ -15,11 +13,14 @@ jobs:
steps:
- name: Install NodeJS for actions compatibility
run: apk add --no-cache nodejs
- name: Checkout source code
uses: actions/checkout@v6
- name: Login to container registry (prod only)
if: ${{ forgejo.ref_name == 'main' }}
run: /kaniko/executor login --username="forgejo-actions" --password="${{ forgejo.token }}" git.hamburg.ccc.de
run: /kaniko/executor login --username="forgejo-actions" --password="${{ secrets.PACKAGES_TOKEN }}" git.hamburg.ccc.de
- name: Build Container
env:
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
@ -27,7 +28,6 @@ jobs:
--dockerfile="${{forgejo.workspace }}/Containerfile"
--context="dir://${{ forgejo.workspace }}"
--destination=git.hamburg.ccc.de/ccchh/dooris:latest
--credential-helpers=env
--no-push-cache
--annotation=org.opencontainers.image.ref.name=dooris
--annotation=org.opencontainers.image.url=${{ forgejo.server_url }}/${{ forgejo.repository }}