fix: README.md use $IMG_NAME more
All checks were successful
Build and Push docker image / buildAndPush (push) Successful in 2m21s
All checks were successful
Build and Push docker image / buildAndPush (push) Successful in 2m21s
This commit is contained in:
parent
8a7a7cf2ec
commit
0b4c3b11a1
1 changed files with 2 additions and 2 deletions
|
|
@ -10,13 +10,13 @@ As you cannot run a forgejo runner with `nixos/nix` due to it not having `node`
|
|||
IMG_NAME="nix"
|
||||
nix build --extra-experimental-features "flakes nix-command" .
|
||||
docker load -i result
|
||||
docker image tag nix "$URL/$USERNAME/$IMG_NAME:latest"
|
||||
docker image tag "$IMG_NAME" "$URL/$USERNAME/$IMG_NAME:latest"
|
||||
docker login "https://$URL"
|
||||
docker push "$URL/$USERNAME/$IMG_NAME"
|
||||
rm result # don't forget to cleanup the GC root
|
||||
|
||||
# I also tag with the date, but this might be unneeded
|
||||
docker image tag nix "$URL/$USERNAME/$IMG_NAME:latest$(date --iso-8601)"
|
||||
docker image tag "$IMG_NAME" "$URL/$USERNAME/$IMG_NAME:latest$(date --iso-8601)"
|
||||
docker push "$URL/$USERNAME/$IMG_NAME"
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue