build: use env to get name of repo
This commit is contained in:
parent
5a5942c480
commit
d6ea7a689e
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue