From d6ea7a689e17ff1c2bb1603237b27d33a54df402 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 12 Jan 2025 19:01:58 +0000 Subject: [PATCH] build: use env to get name of repo --- .forgejo/workflows/build-image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index 760ae58..149b3d7 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -13,14 +13,14 @@ jobs: - name: Clear image from cache run: | - docker images git.kemitix.net/kemitix/rust -q | sort -u | xargs -r docker rmi --force + docker images git.kemitix.net/${{ env.GITHUB_REPOSITORY }} -q | sort -u | xargs -r docker rmi --force docker system prune --force --all - name: Build - run: docker build . -t git.kemitix.net/kemitix/rust:latest + run: docker build . -t git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest - name: Login - run: docker login --username kemitix --password ${{ secrets.FORGE_USER_PASSWORD }} git.kemitix.net + run: docker login git.kemiti.net --username kemitix --password ${{ env.GITHUB_TOKEN }} - name: Publish - run: docker push git.kemitix.net/kemitix/rust:latest + run: docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest