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