From cc76a3ef39ec9523fac8b99d635181b4d714b207 Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Mon, 14 Apr 2025 22:38:20 +0200 Subject: [PATCH] fix: correct container repo path, refs NOISSUE --- .gitea/workflows/release.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 58ec907..222c6e6 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -51,17 +51,15 @@ jobs: echo "Version must match!" exit -1 fi - - name: Login to Gitea conteiner registry + - name: Login to Gitea container registry uses: docker/login-action@v3 with: username: gitearobot password: ${{ secrets.PACKAGE_GITEA_PAT }} registry: git.disi.dev - name: Build and publish - env: - GITEA_USERNAME: gitearobot - GITEA_PASSWORD: ${{ secrets.PACKAGE_GITEA_PAT }} run: | + REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $1}') REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_') - docker build -t "git.disi.dev/song-of-the-day:$(cat $REPOSITORY_NAME/VERSION)" ./song_of_the_day - docker push "git.disi.dev/song-of-the-day:$(cat $REPOSITORY_NAME/VERSION)" + docker build -t "git.disi.dev/$REPOSITORY_OWNER/song-of-the-day:$(cat $REPOSITORY_NAME/VERSION)" ./song_of_the_day + docker push "git.disi.dev/$REPOSITORY_OWNER/song-of-the-day:$(cat $REPOSITORY_NAME/VERSION)"