File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 echo "skip=false" >> $GITHUB_OUTPUT
3434 echo "branch=$BRANCH" >> $GITHUB_OUTPUT
3535 echo "release=$SLUG" >> $GITHUB_OUTPUT
36- echo "namespace=preview-$SLUG" >> $GITHUB_OUTPUT
36+ # shared namespace for all previews; only the release is per-branch
37+ echo "namespace=preview" >> $GITHUB_OUTPUT
3738 echo "host=$SLUG.ohmstaging.org" >> $GITHUB_OUTPUT
3839
3940 - uses : actions/checkout@v4
7273 done
7374 echo "Tunnel failed to reach k3s" >&2; exit 1
7475
75- - name : Helm uninstall + delete namespace
76+ # Uninstall only this branch's release. The shared `preview` namespace and
77+ # its middleware stay (other previews live there).
78+ - name : Helm uninstall
7679 if : steps.r.outputs.skip != 'true'
7780 run : |
7881 helm -n ${{ steps.r.outputs.namespace }} uninstall ${{ steps.r.outputs.release }} || echo "release already gone"
79- kubectl delete namespace ${{ steps.r.outputs.namespace }} --ignore-not-found
82+ kubectl -n ${{ steps.r.outputs. namespace }} delete job ${{ steps.r.outputs.release }}-restore --ignore-not-found
Original file line number Diff line number Diff line change 3939 echo "branch=$BRANCH" >> $GITHUB_OUTPUT
4040 echo "slug=$SLUG" >> $GITHUB_OUTPUT
4141 echo "release=$SLUG" >> $GITHUB_OUTPUT
42- echo "namespace=preview-$SLUG" >> $GITHUB_OUTPUT
42+ # one shared namespace for all previews; each branch is its own release
43+ echo "namespace=preview" >> $GITHUB_OUTPUT
4344 echo "host=$SLUG.ohmstaging.org" >> $GITHUB_OUTPUT
4445
4546 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ osm-seed:
2929 MAILER_USERNAME : " {{MAILER_USERNAME}}"
3030 MAILER_PASSWORD : " {{MAILER_PASSWORD}}"
3131 MAILER_FROM : web@noreply.openhistoricalmap.org
32- NOMINATIM_URL : nominatim.ohmstaging .org
33- OVERPASS_URL : overpass-api.ohmstaging .org
32+ NOMINATIM_URL : nominatim.openhistoricalmap .org
33+ OVERPASS_URL : overpass-api.openhistoricalmap .org
3434 NEW_RELIC_LICENSE_KEY : " none"
3535 NEW_RELIC_APP_NAME : " none"
3636 ORGANIZATION_NAME : OpenHistoricalMap
You can’t perform that action at this time.
0 commit comments