This commit is contained in:
parent
c63537e0ed
commit
60a7f5dc44
1 changed files with 4 additions and 3 deletions
|
|
@ -8,16 +8,17 @@ jobs:
|
||||||
build-container:
|
build-container:
|
||||||
name: Build Container
|
name: Build Container
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
|
||||||
image: ghcr.io/osscontainertools/kaniko:alpine
|
|
||||||
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="${{ secrets.PACKAGES_TOKEN }}" git.hamburg.ccc.de
|
run: echo /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' }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue