flagon-io/g1t

public

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t/scripts/deploy.sh

21 lines886 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Deploy scripts live in the repository1#!/usr/bin/env bash
Deploys as code: a manifest of every Worker, a deploy tool that ships only what changed in parallel stages, and a g1t Actions workflow2# Deploys g1t: every part, or the ones named, migrations first and then
3# stage by stage, as deploy/stack.jsonc orders them. A thin wrapper over
4# scripts/deploy.mjs, which can also deploy only what changed:
Deploy scripts live in the repository5#
6# scripts/deploy.sh # everything
7# scripts/deploy.sh billing web # just these, still in order
Deploys as code: a manifest of every Worker, a deploy tool that ships only what changed in parallel stages, and a g1t Actions workflow8# node scripts/deploy.mjs plan # what changed since each part's live commit
9# node scripts/deploy.mjs deploy # only that
Deploy scripts live in the repository10#
11# Uses your `wrangler login`. The repository's .env may hold a token for
12# other tools; it is ignored here unless you set CLOUDFLARE_DEPLOY_TOKEN.
Deploys as code: a manifest of every Worker, a deploy tool that ships only what changed in parallel stages, and a g1t Actions workflow13# See docs/DEPLOYING.md.
Deploy scripts live in the repository14set -euo pipefail
15
16ROOT="$(cd "$(dirname "$0")/.." && pwd)"
Deploys as code: a manifest of every Worker, a deploy tool that ships only what changed in parallel stages, and a g1t Actions workflow17if [ $# -eq 0 ]; then
18 exec node "$ROOT/scripts/deploy.mjs" deploy --all
19fi
20names=$(IFS=,; echo "$*")
21exec node "$ROOT/scripts/deploy.mjs" deploy --force --only "$names"