Skip to content

Commit 5d4d6d7

Browse files
author
Théo LAGACHE
committed
chore(release): 26.01.2b7
1 parent 540116c commit 5d4d6d7

7 files changed

Lines changed: 141 additions & 2 deletions

File tree

.github/assets/templates/agent.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ${PROJECT_NAME}
2+
services:
3+
app:
4+
container_name: ${PROJECT_NAME}-app
5+
restart: always
6+
image: portabase/agent:latest
7+
volumes:
8+
- ./databases.json:/config/config.json
9+
extra_hosts:
10+
- "localhost:host-gateway"
11+
environment:
12+
TZ: "Europe/Paris"
13+
EDGE_KEY: "${EDGE_KEY}"
14+
LOG: info
15+
networks:
16+
- portabase
17+
18+
{{EXTRA_SERVICES}}
19+
20+
volumes:
21+
{{EXTRA_VOLUMES}}
22+
23+
networks:
24+
portabase:
25+
name: portabase_network
26+
external: true
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ${PROJECT_NAME}
2+
services:
3+
portabase:
4+
container_name: ${PROJECT_NAME}-app
5+
image: solucetechnologies/portabase:latest
6+
env_file:
7+
- .env
8+
ports:
9+
- "${PORT}:3000"
10+
environment:
11+
- TIME_ZONE=Europe/Paris
12+
- HOSTNAME=0.0.0.0
13+
- PORT=3000
14+
volumes:
15+
- portabase-private:/app/private
16+
depends_on:
17+
db:
18+
condition: service_healthy
19+
db:
20+
container_name: ${PROJECT_NAME}-pg
21+
image: postgres:17-alpine
22+
ports:
23+
- "${PG_PORT}:5432"
24+
volumes:
25+
- postgres-data:/var/lib/postgresql/data
26+
environment:
27+
- POSTGRES_DB=${POSTGRES_DB}
28+
- POSTGRES_USER=${POSTGRES_USER}
29+
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
30+
- PROJECT_NAME="Portabase"
31+
- PROJECT_URL=${PROJECT_URL}
32+
healthcheck:
33+
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
34+
interval: 10s
35+
timeout: 5s
36+
retries: 5
37+
volumes:
38+
postgres-data:
39+
portabase-private:

.github/workflows/release-candidate.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,15 @@ jobs:
3030
secrets:
3131
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
3232
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
template_upload:
35+
needs: python_build
36+
uses: ./.github/workflows/templates-upload.yml
37+
with:
38+
version: ${{ github.ref_name }}
39+
is_prerelease: true
40+
secrets:
41+
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
42+
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
43+
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
44+
S3_BUCKET: ${{ secrets.S3_BUCKET }}

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,15 @@ jobs:
3232
secrets:
3333
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
3434
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
template_upload:
37+
needs: python_build
38+
uses: ./.github/workflows/templates-upload.yml
39+
with:
40+
version: ${{ github.ref_name }}
41+
is_prerelease: false
42+
secrets:
43+
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
44+
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
45+
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
46+
S3_BUCKET: ${{ secrets.S3_BUCKET }}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Upload Templates to S3
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
required: true
8+
type: string
9+
is_prerelease:
10+
required: true
11+
type: boolean
12+
secrets:
13+
S3_ENDPOINT:
14+
required: true
15+
S3_ACCESS_KEY:
16+
required: true
17+
S3_SECRET_KEY:
18+
required: true
19+
S3_BUCKET:
20+
required: true
21+
22+
jobs:
23+
upload:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Install S3cmd
29+
run: sudo apt-get update && sudo apt-get install -y s3cmd
30+
31+
- name: Configure S3cmd
32+
run: |
33+
cat <<EOF > ~/.s3cfg
34+
[default]
35+
access_key = ${{ secrets.S3_ACCESS_KEY }}
36+
secret_key = ${{ secrets.S3_SECRET_KEY }}
37+
host_base = ${{ secrets.S3_ENDPOINT }}
38+
host_bucket = %(bucket)s.${{ secrets.S3_ENDPOINT }}
39+
use_https = True
40+
EOF
41+
42+
- name: Upload Versioned Templates
43+
run: |
44+
CLEAN_VERSION=$(echo "${{ inputs.version }}" | sed 's/^v//')
45+
s3cmd sync .github/assets/templates/ s3://${{ secrets.S3_BUCKET }}/cli/public/templates/$CLEAN_VERSION/ --acl-public
46+
47+
- name: Upload Latest Templates (Stable Only)
48+
if: ${{ !inputs.is_prerelease }}
49+
run: |
50+
s3cmd sync .github/assets/templates/ s3://${{ secrets.S3_BUCKET }}/cli/public/templates/latest/ --acl-public

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ keywords:
2222
- management
2323
- integration
2424
license: Apache-2.0
25-
version: 26.01.2b6
25+
version: 26.01.2b7
2626
date-released: "2026-01-15"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "portabase-cli"
3-
version = "26.01.2b6"
3+
version = "26.01.2b7"
44
description = "The official command line interface (CLI) for managing and deploying Portabase instances with ease."
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)