From 5d3e4305cea1c0f615a7d9070d84862d51f412ad Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sat, 25 Nov 2023 16:55:34 +0100 Subject: [PATCH] Use repo owner variable instead of gitea.actor --- .gitea/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 0fff7ef..4196557 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -12,6 +12,7 @@ jobs: env: IMAGE_NAME: namesny-com REGISTRY: git.namesny.com + REPO_OWNER: mathis steps: - name: Checkout uses: actions/checkout@v4 @@ -23,6 +24,6 @@ jobs: password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push run: | - docker build -t ${REGISTRY}/${{ gitea.actor }}/${IMAGE_NAME}:${{ gitea.sha }} -t ${REGISTRY}/${{ gitea.actor }}/${IMAGE_NAME}:latest . + docker build -t ${REGISTRY}/${REPO_OWNER}}/${IMAGE_NAME}:${{ gitea.sha }} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest . docker push \ No newline at end of file