Build each target container individually
Some checks failed
build-docker-imge / Build the docker container (push) Failing after 8m29s
build-docker-imge / Build the docker container (pull_request) Failing after 8m7s

This commit is contained in:
Konstantin Hintermayer 2024-10-04 19:55:55 +02:00
parent 12e4b46761
commit 13a5edc9ac

View File

@ -20,9 +20,29 @@ jobs:
name: Run Kaniko to build our docker container. name: Run Kaniko to build our docker container.
with: with:
image: kocoded/nachhilfesystem/nachhilfesystem image: kocoded/nachhilfesystem/nachhilfesystem
tag: ${{ gitea.workflow_sha }} tag: ${{ gitea.workflow_sha }}-api
tag_with_latest: true
registry: git.kocoder.xyz registry: git.kocoder.xyz
username: ${{ secrets.CI_RUNNER_USER }} username: ${{ secrets.CI_RUNNER_USER }}
password: ${{ secrets.CI_RUNNER_TOKEN }} password: ${{ secrets.CI_RUNNER_TOKEN }}
build_file: Dockerfile build_file: Dockerfile
target: api_serve
- uses: aevea/action-kaniko@master
name: Run Kaniko to build our docker container.
with:
image: kocoded/nachhilfesystem/nachhilfesystem
tag: ${{ gitea.workflow_sha }}-web
registry: git.kocoder.xyz
username: ${{ secrets.CI_RUNNER_USER }}
password: ${{ secrets.CI_RUNNER_TOKEN }}
build_file: Dockerfile
target: web_serve
- uses: aevea/action-kaniko@master
name: Run Kaniko to build our docker container.
with:
image: kocoded/nachhilfesystem/nachhilfesystem
tag: ${{ gitea.workflow_sha }}-console
registry: git.kocoder.xyz
username: ${{ secrets.CI_RUNNER_USER }}
password: ${{ secrets.CI_RUNNER_TOKEN }}
build_file: Dockerfile
target: console