Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions just/infra.just
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
set working-directory := '..'

# `--slot NAME` keeps several previews of one branch.
# `--slot NAME` keeps several previews of one branch. The branch is read before
# deploying, so switching branch during the deploy doesn't change the preview
# it waits for.
# Deploy this worktree, uncommitted changes included, to its preview; print its URLs.
preview *args:
#!/usr/bin/env bash
set -euo pipefail
branch=$(git branch --show-current)
piquelctl --timeout 30m preview deploy sourceorigin --local {{ args }}
piquelctl --timeout 10m preview wait sourceorigin "$(git branch --show-current)" {{ args }} --ready routes
piquelctl --timeout 10m preview wait sourceorigin "$branch" {{ args }} --ready routes

# Delete this worktree's preview with its database.
preview-delete *args:
piquelctl --timeout 5m preview delete sourceorigin "$(git branch --show-current)" {{ args }} --yes
#!/usr/bin/env bash
set -euo pipefail
branch=$(git branch --show-current)
piquelctl --timeout 5m preview delete sourceorigin "$branch" {{ args }} --yes

# Each telemetry config is checked by the image infra/telemetry.toml runs it
# with, so by the version that will read it. Needs piquelctl and Docker.
Expand Down