build: use env to get name of repo
All checks were successful
/ test (map[name:1.74.1]) (push) Successful in 39s
/ test (map[name:nightly]) (push) Successful in 42s
/ test (map[name:stable]) (push) Successful in 4s

This commit is contained in:
Paul Campbell 2025-01-12 19:01:58 +00:00
parent 5a5942c480
commit d6ea7a689e

View file

@ -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