fix: more CI issues, refs NOISSUE

This commit is contained in:
2025-05-24 21:13:49 +02:00
parent a5133b1ba0
commit 8edc710be8
2 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ jobs:
- name: Check version match
run: |
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_')
if [ "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME}" ] ; then
if [ "$(cat 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/odoo17:$(cat $REPOSITORY_NAME/VERSION)" ./
docker push "git.disi.dev/$REPOSITORY_OWNER/odoo17:$(cat $REPOSITORY_NAME/VERSION)"
docker build -t "git.disi.dev/$REPOSITORY_OWNER/odoo17:$(cat VERSION)" ./
docker push "git.disi.dev/$REPOSITORY_OWNER/odoo17:$(cat VERSION)"