-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: docker build * ci: docker build * add initial Dockerfile * Update ui image node version * Update dockerfile * Fix ui docker build * Update ui image name * chore: license header --------- Co-authored-by: lubnar <[email protected]> Co-authored-by: Lubnar <[email protected]>
- Loading branch information
1 parent
4bcee6c
commit ae26c05
Showing
6 changed files
with
62 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# SPDX-FileCopyrightText: 2024 grow platform GmbH | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build-ui-docker-image: | ||
runs-on: ubuntu-latest | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: b-s-f/yaku/ui | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Generate image tag | ||
run: | | ||
base_tag="${{ env.IMAGE_NAME }}:$( date '+%Y-%m-%d_%H-%M-%S' )-$(echo ${GITHUB_SHA} | cut -c1-7)" | ||
image_tag="${{ env.REGISTRY }}/$base_tag" | ||
echo "IMAGE_TAG=$image_tag" >> $GITHUB_ENV | ||
- name: Build Docker Image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
pull: true | ||
push: true | ||
tags: ${{ env.IMAGE_TAG }} | ||
context: ./yaku-ui | ||
file: yaku-ui/Dockerfile | ||
platforms: linux/amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ node_modules | |
/.pants.d/ | ||
|
||
yaku-apps-typescript/apps/defender-for-cloud/results.json | ||
/yaku-ui/.turbo/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ cypress | |
reports | ||
.github/** | ||
.vscode/** | ||
.turbo/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters