Compare commits
1
Commits
master
...
5792b8a680
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5792b8a680 |
@@ -48,9 +48,11 @@ runas git tag -v "$latest" || {
|
||||
sha=$(runas git rev-list -1 "$latest")
|
||||
report_status "pending" "deploying $latest" "$sha"
|
||||
|
||||
flake_url="git+${GITEA_URL}/${GITEA_REPO}?ref=refs/tags/${latest}&rev=${sha}#$HOSTNAME"
|
||||
runas git checkout "$latest"
|
||||
runas tee .nixos-label <<< "$latest" >/dev/null
|
||||
runas git add .nixos-label
|
||||
|
||||
if nixos-rebuild switch --flake "$flake_url"; then
|
||||
if nixos-rebuild switch --flake ".#$HOSTNAME"; then
|
||||
echo "$latest" > "$STATE_DIR/tag"
|
||||
report_status "success" "deployed $latest" "$sha"
|
||||
echo "deployed $latest"
|
||||
|
||||
Reference in New Issue
Block a user