forked from kamba4/sunders
fix: Uses repository registry credentials
This repository has REGISTRY_USERNAME/REGISTRY_TOKEN configured, not PACKAGES_TOKEN. Both are still only passed to kaniko when publishing from main.
This commit is contained in:
parent
40a92ef6c8
commit
7d925d79a2
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@ jobs:
|
||||||
- name: Build image
|
- name: Build image
|
||||||
env:
|
env:
|
||||||
KANIKO_NO_PUSH: ${{ !(forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main') }}
|
KANIKO_NO_PUSH: ${{ !(forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main') }}
|
||||||
KANIKO_GIT_HAMBURG_CCC_DE_USER: forgejo-actions
|
KANIKO_GIT_HAMBURG_CCC_DE_USER: ${{ (forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main') && secrets.REGISTRY_USERNAME || '' }}
|
||||||
KANIKO_GIT_HAMBURG_CCC_DE_PASSWORD: ${{ (forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main') && secrets.PACKAGES_TOKEN || '' }}
|
KANIKO_GIT_HAMBURG_CCC_DE_PASSWORD: ${{ (forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main') && secrets.REGISTRY_TOKEN || '' }}
|
||||||
run: /kaniko/executor
|
run: /kaniko/executor
|
||||||
--dockerfile="${{ forgejo.workspace }}/${{ matrix.image }}/Containerfile"
|
--dockerfile="${{ forgejo.workspace }}/${{ matrix.image }}/Containerfile"
|
||||||
--context="dir://${{ forgejo.workspace }}/${{ matrix.image }}"
|
--context="dir://${{ forgejo.workspace }}/${{ matrix.image }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue