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:
|
||||
name: Build Container
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/osscontainertools/kaniko:alpine
|
||||
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="${{ 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
|
||||
env:
|
||||
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue