Skip to content

Commit bc6257a

Browse files
committed
initial commit
0 parents  commit bc6257a

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Deploy Project
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
env:
11+
GH_HEAD_REF: ${{ github.head_ref }}
12+
GH_REF: ${{ github.ref_name }}
13+
14+
permissions:
15+
id-token: write
16+
contents: read
17+
pull-requests: write
18+
19+
jobs:
20+
deploy:
21+
name: Deploy Project
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
ref: ${{ github.event.pull_request.head.sha }}
28+
fetch-depth: 0
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v1
32+
with:
33+
python-version: 3.12
34+
35+
- name: Install dependencies
36+
run: |
37+
python3 -m pip install -U requests
38+
python3 -m pip install outerbounds==0.7.2 pyyaml
39+
python3 -m pip install -U ob-project-utils
40+
- name: Configure Outerbounds
41+
run: |
42+
PROJECT_NAME=$(yq .project obproject.toml)
43+
DEFAULT_CICD_USER="${PROJECT_NAME//_/-}-cicd"
44+
PLATFORM=$(yq .platform obproject.toml)
45+
CICD_USER=$(yq ".cicd_user // \"$DEFAULT_CICD_USER\"")
46+
PERIMETER="default"
47+
echo "🏗️ Deployment target:"
48+
echo " Platform: $PLATFORM"
49+
echo " CI/CD User: $CICD_USER"
50+
echo " Perimeter: $PERIMETER"
51+
outerbounds service-principal-configure \
52+
--name $CICD_USER \
53+
--deployment-domain $PLATFORM \
54+
--perimeter $PERIMETER \
55+
--github-actions
56+
57+
- name: Deploy Project
58+
env:
59+
COMMIT_URL: "https://github.com/${{ github.repository }}/commit/"
60+
CI_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
61+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
63+
PYTHONUNBUFFERED: 1
64+
run: obproject-deploy
65+

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
# An Empty Outerbounds Project 👋🌱
3+
4+
Use this as a blank slate for your own projects
5+
6+
#### ➡️ For comprehensive documentation, see [the project section in the Outerbounds docs](https://docs.outerbounds.com)
7+

obproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# ⬇️ Change this to match the URL of your Outerbounds deployment
3+
platform = 'dev-silverwing.outerbounds.xyz'
4+
5+
# ⬇️ Change these to match your project name
6+
project = 'ob_project_empty'
7+
title = 'Empty Outerbounds Project'
8+
9+
# (optional) Enable this section to access assets in local runs
10+
# [dev-assets]
11+
# branch = 'dev'
12+
# read-only = true

0 commit comments

Comments
 (0)