New: Automatic Docker container builds #1

Merged
Kocoder merged 12 commits from gitlab_ci into main 2024-10-05 16:16:31 +00:00
5 changed files with 980 additions and 10 deletions
Showing only changes of commit 13a5edc9ac - Show all commits

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