mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
add docker build
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
when:
|
||||
- event: [push, manual]
|
||||
branch: [main]
|
||||
|
||||
steps:
|
||||
prepare-fe-image-tags:
|
||||
image: alpine:3.21
|
||||
commands:
|
||||
- SHORT_SHA="$(echo "$CI_COMMIT_SHA" | cut -c1-8)"
|
||||
- printf '%s\n' "$SHORT_SHA" > .fe-tags
|
||||
- printf '%s\n' "latest" >> .fe-tags
|
||||
|
||||
build-and-push-fe-image:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
privileged: true
|
||||
depends_on:
|
||||
- prepare-fe-image-tags
|
||||
settings:
|
||||
registry: git.cluster.lab.kemkas.hu
|
||||
repo: git.cluster.lab.kemkas.hu/${CI_REPO}
|
||||
context: frontend
|
||||
dockerfile: frontend/Dockerfile
|
||||
tags_file: .fe-tags
|
||||
username:
|
||||
from_secret: gitea_packages_username
|
||||
password:
|
||||
from_secret: gitea_packages_token
|
||||
@@ -11,4 +11,4 @@ steps:
|
||||
- cd frontend
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn run test
|
||||
- yarn run lint
|
||||
- yarn run lint
|
||||
Reference in New Issue
Block a user