Skip to content

Commit

Permalink
SCP-2622: Document deployment details. (#126)
Browse files Browse the repository at this point in the history
* SCP-2622: Document deployment details.

* Switch production tag format
  • Loading branch information
shlevy committed Nov 19, 2021
1 parent 417d1a3 commit 7333e3c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main # staging
tags:
- plutus-pab/v[0-9]+.[0-9]+.[0-9]+ # production
- v[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] # production
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions README.adoc
Expand Up @@ -121,6 +121,14 @@ Run `cabal build plutus-pab` from the root to build the Plutus PAB library.

See the link:./cabal.project[cabal project file] to see the other packages that you can build with `cabal`.

=== Deployment

The Plutus Playground is automatically deployed upon certain pushes to GitHub

* https://plutus-playground-plutus-apps-staging.plutus.aws.iohkdev.io/[Staging] is deployed from every commit pushed to `main` (this URL subject to change)
* https://playground.plutus.iohkdev.io/[Production] is deployed from every release tag (matching `vYYYY-MM-DD`)

For more details, including instructions for setting up ad hoc testing deployments, see https://github.com/input-output-hk/plutus-ops[the plutus-ops repo].

[[nix-advice]]
== Nix
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy-bitte
Expand Up @@ -17,7 +17,7 @@ then
fi

ref="${GITHUB_REF_SLUG:-}"
ref="${ref/plutus-pab\/v+([0-9]).+([0-9]).+([0-9])/plutus-pab-vx.x.x}"
ref="${ref/v+([0-9])-+([0-9])-+([0-9])/vYYYY-MM-DD}"
declare -r ref

if [ -z "${ref}" ]
Expand All @@ -26,7 +26,7 @@ then
fi

declare -A ref_env_mapping=(
[plutus-pab-vx.x.x]=plutusProduction
[vYYYY-MM-DD]=plutusProduction
[main]=plutusStaging
)

Expand Down

0 comments on commit 7333e3c

Please sign in to comment.