Compare commits
2 commits
5759f1213f
...
eb773f0307
| Author | SHA1 | Date | |
|---|---|---|---|
|
eb773f0307 |
|||
|
f133a491b2 |
1 changed files with 5 additions and 5 deletions
|
|
@ -1,11 +1,9 @@
|
||||||
name: Build Container
|
name: Build Container
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch: {}
|
||||||
push: {}
|
push: {}
|
||||||
|
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-container:
|
build-container:
|
||||||
name: Build Container
|
name: Build Container
|
||||||
|
|
@ -15,11 +13,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install NodeJS for actions compatibility
|
- name: Install NodeJS for actions compatibility
|
||||||
run: apk add --no-cache nodejs
|
run: apk add --no-cache nodejs
|
||||||
|
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Login to container registry (prod only)
|
- name: Login to container registry (prod only)
|
||||||
if: ${{ forgejo.ref_name == 'main' }}
|
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
|
- name: Build Container
|
||||||
env:
|
env:
|
||||||
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
|
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
|
||||||
|
|
@ -27,7 +28,6 @@ jobs:
|
||||||
--dockerfile="${{forgejo.workspace }}/Containerfile"
|
--dockerfile="${{forgejo.workspace }}/Containerfile"
|
||||||
--context="dir://${{ forgejo.workspace }}"
|
--context="dir://${{ forgejo.workspace }}"
|
||||||
--destination=git.hamburg.ccc.de/ccchh/dooris:latest
|
--destination=git.hamburg.ccc.de/ccchh/dooris:latest
|
||||||
--credential-helpers=env
|
|
||||||
--no-push-cache
|
--no-push-cache
|
||||||
--annotation=org.opencontainers.image.ref.name=dooris
|
--annotation=org.opencontainers.image.ref.name=dooris
|
||||||
--annotation=org.opencontainers.image.url=${{ forgejo.server_url }}/${{ forgejo.repository }}
|
--annotation=org.opencontainers.image.url=${{ forgejo.server_url }}/${{ forgejo.repository }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue