-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from fosrl/dev
major changes for 1.0.0-beta.9
- Loading branch information
Showing
77 changed files
with
2,462 additions
and
884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
release: | ||
name: Build and Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Extract tag name | ||
id: get-tag | ||
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.23.0 | ||
|
||
- name: Update version in package.json | ||
run: | | ||
TAG=${{ env.TAG }} | ||
if [ -f package.json ]; then | ||
jq --arg version "$TAG" '.version = $version' package.json > package.tmp.json && mv package.tmp.json package.json | ||
echo "Updated package.json with version $TAG" | ||
else | ||
echo "package.json not found" | ||
fi | ||
cat package.json | ||
- name: Pull latest Gerbil version | ||
id: get-gerbil-tag | ||
run: | | ||
LATEST_TAG=$(curl -s https://api.github.com/repos/fosrl/gerbil/tags | jq -r '.[0].name') | ||
echo "LATEST_GERBIL_TAG=$LATEST_TAG" >> $GITHUB_ENV | ||
- name: Pull latest Badger version | ||
id: get-badger-tag | ||
run: | | ||
LATEST_TAG=$(curl -s https://api.github.com/repos/fosrl/badger/tags | jq -r '.[0].name') | ||
echo "LATEST_BADGER_TAG=$LATEST_TAG" >> $GITHUB_ENV | ||
- name: Update install/main.go | ||
run: | | ||
PANGOLIN_VERSION=${{ env.TAG }} | ||
GERBIL_VERSION=${{ env.LATEST_GERBIL_TAG }} | ||
sed -i "s/config.PangolinVersion = \".*\"/config.PangolinVersion = \"$PANGOLIN_VERSION\"/" install/main.go | ||
sed -i "s/config.GerbilVersion = \".*\"/config.GerbilVersion = \"$GERBIL_VERSION\"/" install/main.go | ||
sed -i "s/config.BadgerVersion = \".*\"/config.BadgerVersion = \"$BADGER_VERSION\"/" install/main.go | ||
echo "Updated install/main.go with Pangolin version $PANGOLIN_VERSION, Gerbil version $GERBIL_VERSION, and Badger version $BADGER_VERSION" | ||
cat install/main.go | ||
- name: Build installer | ||
working-directory: install | ||
run: | | ||
make release | ||
- name: Upload artifacts from /install/bin | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: install-bin | ||
path: install/bin/ | ||
|
||
- name: Build and push Docker images | ||
run: | | ||
TAG=${{ env.TAG }} | ||
make build-release tag=$TAG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,5 @@ dist | |
installer | ||
*.tar | ||
bin | ||
.secrets | ||
test_event.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
app: | ||
dashboard_url: http://localhost:3002 | ||
base_domain: localhost | ||
log_level: info | ||
dashboard_url: "http://localhost:3002" | ||
base_domain: "localhost" | ||
log_level: "info" | ||
save_logs: false | ||
|
||
server: | ||
external_port: 3000 | ||
internal_port: 3001 | ||
next_port: 3002 | ||
internal_hostname: pangolin | ||
internal_hostname: "pangolin" | ||
secure_cookies: true | ||
session_cookie_name: p_session | ||
resource_session_cookie_name: p_resource_session | ||
resource_access_token_param: p_token | ||
session_cookie_name: "p_session_token" | ||
resource_access_token_param: "p_token" | ||
resource_session_request_param: "p_session_request" | ||
|
||
traefik: | ||
cert_resolver: letsencrypt | ||
http_entrypoint: web | ||
https_entrypoint: websecure | ||
cert_resolver: "letsencrypt" | ||
http_entrypoint: "web" | ||
https_entrypoint: "websecure" | ||
|
||
gerbil: | ||
start_port: 51820 | ||
base_endpoint: localhost | ||
base_endpoint: "localhost" | ||
block_size: 24 | ||
site_block_size: 30 | ||
subnet_group: 100.89.137.0/20 | ||
|
@@ -34,10 +34,11 @@ rate_limits: | |
|
||
users: | ||
server_admin: | ||
email: [email protected] | ||
password: Password123! | ||
email: "[email protected]" | ||
password: "Password123!" | ||
|
||
flags: | ||
require_email_verification: false | ||
disable_signup_without_invite: true | ||
disable_user_create_org: true | ||
allow_raw_resources: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
all: build | ||
|
||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.