generated from Templates/Docker_Image
✅ Ready to clone and code.
This commit is contained in:
committed by
github-actions[bot]
parent
44b7f644f8
commit
0b1384279d
@@ -41,7 +41,7 @@ jobs:
|
||||
- name: Check version match
|
||||
run: |
|
||||
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_')
|
||||
if [ "$(cat project_name/VERSION)" = "${GITHUB_REF_NAME}" ] ; then
|
||||
if [ "$(cat ai_test/VERSION)" = "${GITHUB_REF_NAME}" ] ; then
|
||||
echo "Version matches successfully!"
|
||||
else
|
||||
echo "Version must match!"
|
||||
@@ -57,5 +57,5 @@ jobs:
|
||||
run: |
|
||||
REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $1}' | tr '[:upper:]' '[:lower:]')
|
||||
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_')
|
||||
docker build -t "git.disi.dev/$REPOSITORY_OWNER/project_name:$(cat project_name/VERSION)" -f Containerfile ./
|
||||
docker push "git.disi.dev/$REPOSITORY_OWNER/project_name:$(cat project_name/VERSION)"
|
||||
docker build -t "git.disi.dev/$REPOSITORY_OWNER/ai_test:$(cat ai_test/VERSION)" -f Containerfile ./
|
||||
docker push "git.disi.dev/$REPOSITORY_OWNER/ai_test:$(cat ai_test/VERSION)"
|
||||
Reference in New Issue
Block a user