mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11e85b613c | ||
|
|
eb82833c7e | ||
|
|
399a3e09de | ||
|
|
1a735bda42 |
@@ -4,10 +4,6 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
image_name:
|
image_name:
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: 'solucetechnologies/portabase'
|
|
||||||
image_name2:
|
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: 'portabase/portabase'
|
default: 'portabase/portabase'
|
||||||
@@ -28,15 +24,11 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
required: true
|
required: true
|
||||||
DOCKER_USERNAME_2:
|
|
||||||
required: true
|
|
||||||
DOCKER_PASSWORD_2:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build and push Docker images (Portabase)
|
name: Build and push Docker images
|
||||||
runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' }}
|
runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -126,98 +118,5 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
build-2:
|
|
||||||
name: Build and push Docker images (Soluce Technologies)
|
|
||||||
runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' }}
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
platform: [ linux/amd64, linux/arm64 ]
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Login to Docker
|
|
||||||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME_2 }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD_2 }}
|
|
||||||
|
|
||||||
- name: Set image tag
|
|
||||||
id: set-tags
|
|
||||||
run: |
|
|
||||||
REF_NAME=${GITHUB_REF#refs/tags/}
|
|
||||||
if [ "${{ matrix.platform }}" = "linux/amd64" ]; then
|
|
||||||
IMAGE="${{ inputs.image_name2 }}:$REF_NAME-amd64"
|
|
||||||
else
|
|
||||||
IMAGE="${{ inputs.image_name2 }}:$REF_NAME-arm64"
|
|
||||||
fi
|
|
||||||
echo "image=$IMAGE2" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Build and push image
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ${{ inputs.dockerfile }}
|
|
||||||
platforms: ${{ matrix.platform }}
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.set-tags.outputs.image }}
|
|
||||||
target: ${{ inputs.target }}
|
|
||||||
|
|
||||||
- name: Prepare artifact name
|
|
||||||
id: artifact
|
|
||||||
run: |
|
|
||||||
platform=${{ matrix.platform }}
|
|
||||||
echo "safe_platform=${platform//\//-}" >> $GITHUB_OUTPUT
|
|
||||||
echo "${{ steps.set-tags.outputs.image }}" > image.txt
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
|
|
||||||
with:
|
|
||||||
name: image-${{ steps.artifact.outputs.safe_platform }}
|
|
||||||
path: image.txt
|
|
||||||
if-no-files-found: warn
|
|
||||||
compression-level: 6
|
|
||||||
overwrite: false
|
|
||||||
include-hidden-files: false
|
|
||||||
|
|
||||||
create-manifest-2:
|
|
||||||
name: Create multi-arch Docker manifest (Soluce Technologies)
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build-2
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
|
|
||||||
with:
|
|
||||||
name: image-linux-amd64
|
|
||||||
path: /tmp/digests/amd64
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
|
|
||||||
with:
|
|
||||||
name: image-linux-arm64
|
|
||||||
path: /tmp/digests/arm64
|
|
||||||
|
|
||||||
- name: Login to Docker
|
|
||||||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME_2 }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD_2 }}
|
|
||||||
|
|
||||||
- name: Create and push manifest list
|
|
||||||
working-directory: /tmp/digests
|
|
||||||
run: |
|
|
||||||
DOCKER_IMAGES="$(cat amd64/image.txt) $(cat arm64/image.txt)"
|
|
||||||
REF_NAME=${GITHUB_REF#refs/tags/}
|
|
||||||
MANIFEST_IMAGE="${{ inputs.image_name2 }}:$REF_NAME"
|
|
||||||
|
|
||||||
docker buildx imagetools create $DOCKER_IMAGES -t $MANIFEST_IMAGE
|
|
||||||
docker buildx imagetools inspect $MANIFEST_IMAGE
|
|
||||||
|
|
||||||
if [ "${{ inputs.add_latest }}" = "true" ]; then
|
|
||||||
docker buildx imagetools create $DOCKER_IMAGES -t ${{ inputs.image_name2 }}:latest
|
|
||||||
docker buildx imagetools inspect ${{ inputs.image_name2 }}:latest
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,10 +15,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
add_latest: false
|
add_latest: false
|
||||||
secrets:
|
secrets:
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME_2 }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD_2 }}
|
||||||
DOCKER_USERNAME_2: ${{ secrets.DOCKER_USERNAME_2 }}
|
|
||||||
DOCKER_PASSWORD_2: ${{ secrets.DOCKER_PASSWORD_2 }}
|
|
||||||
|
|
||||||
github_release:
|
github_release:
|
||||||
needs: docker_publish
|
needs: docker_publish
|
||||||
|
|||||||
@@ -16,10 +16,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
add_latest: true
|
add_latest: true
|
||||||
secrets:
|
secrets:
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME_2 }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD_2 }}
|
||||||
DOCKER_USERNAME_2: ${{ secrets.DOCKER_USERNAME_2 }}
|
|
||||||
DOCKER_PASSWORD_2: ${{ secrets.DOCKER_PASSWORD_2 }}
|
|
||||||
|
|
||||||
github_release:
|
github_release:
|
||||||
needs: docker_publish
|
needs: docker_publish
|
||||||
|
|||||||
+1
-1
@@ -26,5 +26,5 @@ keywords:
|
|||||||
- web-ui
|
- web-ui
|
||||||
- agent
|
- agent
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
version: 1.2.5-rc.10
|
version: 1.2.5-rc.14
|
||||||
date-released: "2026-02-10"
|
date-released: "2026-02-10"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: docker/dockerfile/Dockerfile
|
dockerfile: docker/dockerfile/Dockerfile
|
||||||
target: prod
|
target: prod
|
||||||
# image: solucetechnologies/portabase:latest
|
image: portabase/portabase:1.2.5-rc.9
|
||||||
ports:
|
ports:
|
||||||
- '8887:80'
|
- '8887:80'
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "portabase",
|
"name": "portabase",
|
||||||
"version": "1.2.5-rc.10",
|
"version": "1.2.5-rc.14",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbopack -p 8887",
|
"dev": "next dev --turbopack -p 8887",
|
||||||
|
|||||||
Reference in New Issue
Block a user