From 96f70983b9974f3e4ed286a1f408f7e1f6c37352 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 12 Jan 2025 18:43:30 +0000 Subject: [PATCH] build: publish to the correct repo --- .forgejo/workflows/push-main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/push-main.yml b/.forgejo/workflows/push-main.yml index e193628..f6e41d5 100644 --- a/.forgejo/workflows/push-main.yml +++ b/.forgejo/workflows/push-main.yml @@ -52,14 +52,16 @@ jobs: - name: Build run: | - docker build . -t git.kemitix.net/kemitix/rust:latest - docker tag git.kemitix.net/kemitix/rust:latest git.kemitix.net/kemitix/rust:${{ env.GITHUB_REF_NAME }} + docker build . -t git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest + docker tag \ + git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest \ + git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF_NAME }} - name: Login - run: docker login git.kemitix.net --username kemitix --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }} + run: docker login git.kemitix.net --username kemitix --password ${{ env.GITHUB_TOKEN }} - name: Publish run: | - docker push git.kemitix.net/kemitix/rust:${{ env.GITHUB_REF_NAME }} - docker push git.kemitix.net/kemitix/rust:latest + docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF_NAME }} + docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest