mirror of
https://github.com/Portabase/agent.git
synced 2026-09-11 02:27:10 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f67a57681 | |||
| 45a1118f64 | |||
| f2275d5aca | |||
| b136140b55 | |||
| 773077f66b | |||
| 46ff086cf9 | |||
| f563c187db | |||
| df0dffa47b |
@@ -21,7 +21,7 @@ on:
|
||||
dockerfile:
|
||||
required: false
|
||||
type: string
|
||||
default: "./docker/dockerfile/Dockerfile"
|
||||
default: "./docker/Dockerfile"
|
||||
secrets:
|
||||
DOCKER_USERNAME:
|
||||
required: true
|
||||
@@ -66,8 +66,6 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.prep.outputs.image }}
|
||||
target: ${{ inputs.target }}
|
||||
cache-from: type=gha,scope=build-${{ matrix.platform }}
|
||||
cache-to: type=gha,mode=max,scope=build-${{ matrix.platform }}
|
||||
|
||||
- name: Save image name for manifest
|
||||
run: echo "${{ steps.prep.outputs.image }}" > image.txt
|
||||
|
||||
@@ -50,6 +50,12 @@ jobs:
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
ref: main
|
||||
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Install cargo-edit
|
||||
run: cargo install cargo-edit
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
@@ -64,43 +70,24 @@ jobs:
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
|
||||
# - name: Run release-it
|
||||
# id: release_step
|
||||
# run: |
|
||||
# git pull origin main
|
||||
#
|
||||
# VERSION=$(release-it --ci --release-version)
|
||||
# echo $VERSION
|
||||
# echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
#
|
||||
# OUTPUT=$(release-it --ci)
|
||||
# echo "$OUTPUT"
|
||||
#
|
||||
# DRAFT_TAG=$(echo "$OUTPUT" | grep -oE 'untagged-[a-z0-9]+')
|
||||
# echo $DRAFT_TAG
|
||||
# echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
- name: Run release-it
|
||||
id: release_step
|
||||
run: |
|
||||
git pull origin main
|
||||
|
||||
# Run release-it in CI mode (bump version, commit, tag, changelog, GitHub release)
|
||||
|
||||
VERSION=$(release-it --ci --release-version)
|
||||
echo $VERSION
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
OUTPUT=$(release-it --ci)
|
||||
echo "$OUTPUT"
|
||||
|
||||
# Extract the new version
|
||||
VERSION=$(echo "$OUTPUT" | grep -oP '(?<=Bumping version: ).*')
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
# Extract draft tag if any
|
||||
|
||||
DRAFT_TAG=$(echo "$OUTPUT" | grep -oE 'untagged-[a-z0-9]+')
|
||||
echo $DRAFT_TAG
|
||||
echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
|
||||
|
||||
publish-docker:
|
||||
needs: create-release
|
||||
if: ${{ needs.create-release.result == 'success' }}
|
||||
|
||||
+3
-5
@@ -12,6 +12,9 @@
|
||||
"tagName": "${version}",
|
||||
"push": true
|
||||
},
|
||||
"hooks": {
|
||||
"before:bump": "cargo set-version ${version}"
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"preset": {
|
||||
@@ -48,11 +51,6 @@
|
||||
},
|
||||
"@release-it/bumper": {
|
||||
"out": [
|
||||
{
|
||||
"file": "Cargo.toml",
|
||||
"path": "package.version",
|
||||
"type": "toml"
|
||||
},
|
||||
{
|
||||
"file": "CITATION.cff",
|
||||
"path": "version",
|
||||
|
||||
+1
-1
@@ -27,5 +27,5 @@ keywords:
|
||||
- self-hosted
|
||||
- portabase
|
||||
license: Apache-2.0
|
||||
version: 1.2.0
|
||||
version: 1.2.4
|
||||
date-released: '2026-02-24'
|
||||
|
||||
Generated
+1
-1
@@ -2872,7 +2872,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "portabase-agent"
|
||||
version = "1.1.6"
|
||||
version = "1.2.4"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"aes-gcm",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "portabase-agent"
|
||||
version = "1.2.0"
|
||||
version = "1.2.4"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
Reference in New Issue
Block a user