mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 07:16:00 +00:00
generated workflows
This commit is contained in:
76
.github/workflows/build-app-beta.yaml
vendored
76
.github/workflows/build-app-beta.yaml
vendored
@@ -1,20 +1,18 @@
|
|||||||
name: Electron app BETA
|
name: Electron app BETA
|
||||||
|
'on':
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: '${{ matrix.os }}'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-14, windows-2022, ubuntu-22.04]
|
os:
|
||||||
# os: [macOS-10.15]
|
- macos-14
|
||||||
|
- windows-2022
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install python 3.11 (MacOS)
|
- name: Install python 3.11 (MacOS)
|
||||||
if: matrix.os == 'macos-14'
|
if: matrix.os == 'macos-14'
|
||||||
@@ -23,7 +21,7 @@ jobs:
|
|||||||
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -34,58 +32,52 @@ jobs:
|
|||||||
node-version: 22.x
|
node-version: 22.x
|
||||||
- name: adjustPackageJson
|
- name: adjustPackageJson
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
node adjustPackageJson --community
|
node adjustPackageJson --community
|
||||||
- name: setUpdaterChannel beta
|
- name: setUpdaterChannel beta
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
node setUpdaterChannel beta
|
node setUpdaterChannel beta
|
||||||
- name: yarn set timeout
|
- name: yarn set timeout
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn config set network-timeout 100000
|
yarn config set network-timeout 100000
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn install
|
yarn install
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
- name: fillPackagedPlugins
|
- name: fillPackagedPlugins
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn fillPackagedPlugins
|
yarn fillPackagedPlugins
|
||||||
- name: Install Snapcraft
|
- name: Install Snapcraft
|
||||||
if: matrix.os == 'ubuntu-22.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
uses: samuelmeuli/action-snapcraft@v1
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn run build:app
|
yarn run build:app
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }} # token for electron publish
|
GH_TOKEN: '${{ secrets.GH_TOKEN }}'
|
||||||
|
WIN_CSC_LINK: '${{ secrets.WINCERT_2025 }}'
|
||||||
WIN_CSC_LINK: ${{ secrets.WINCERT_2025 }}
|
WIN_CSC_KEY_PASSWORD: '${{ secrets.WINCERT_2025_PASSWORD }}'
|
||||||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_2025_PASSWORD }}
|
CSC_LINK: '${{ secrets.APPLECERT_CERTIFICATE }}'
|
||||||
# WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
CSC_KEY_PASSWORD: '${{ secrets.APPLECERT_PASSWORD }}'
|
||||||
# WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
APPLE_ID: '${{ secrets.APPLE_ID }}'
|
||||||
|
APPLE_TEAM_ID: '${{ secrets.APPLE_TEAM_ID }}'
|
||||||
CSC_LINK: ${{ secrets.APPLECERT_CERTIFICATE }}
|
APPLE_ID_PASSWORD: '${{ secrets.APPLE_ID_PASSWORD }}'
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.APPLECERT_PASSWORD }}
|
SNAPCRAFT_STORE_CREDENTIALS: '${{secrets.SNAPCRAFT_LOGIN}}'
|
||||||
|
APPLE_APP_SPECIFIC_PASSWORD: '${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}'
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
||||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
|
||||||
|
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}}
|
|
||||||
APPLE_APP_SPECIFIC_PASSWORD: ${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}
|
|
||||||
|
|
||||||
# - name: publishSnap
|
|
||||||
# if: matrix.os == 'ubuntu-22.04'
|
|
||||||
# run: |
|
|
||||||
# snapcraft upload --release=beta app/dist/*.snap
|
|
||||||
# env:
|
|
||||||
# SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}}
|
|
||||||
|
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
@@ -97,8 +89,10 @@ jobs:
|
|||||||
cp app/dist/*win*.exe artifacts/dbgate-beta.exe || true
|
cp app/dist/*win*.exe artifacts/dbgate-beta.exe || true
|
||||||
cp app/dist/*win_x64.zip artifacts/dbgate-windows-beta.zip || true
|
cp app/dist/*win_x64.zip artifacts/dbgate-windows-beta.zip || true
|
||||||
cp app/dist/*win_arm64.zip artifacts/dbgate-windows-beta-arm64.zip || true
|
cp app/dist/*win_arm64.zip artifacts/dbgate-windows-beta-arm64.zip || true
|
||||||
cp app/dist/*-mac_x64.dmg artifacts/dbgate-beta.dmg || true
|
cp app/dist/*-mac_universal.dmg artifacts/dbgate-beta.dmg || true
|
||||||
|
cp app/dist/*-mac_x64.dmg artifacts/dbgate-beta-x64.dmg || true
|
||||||
cp app/dist/*-mac_arm64.dmg artifacts/dbgate-beta-arm64.dmg || true
|
cp app/dist/*-mac_arm64.dmg artifacts/dbgate-beta-arm64.dmg || true
|
||||||
|
mv app/dist/*.snap artifacts/dbgate-beta.snap || true
|
||||||
|
|
||||||
mv app/dist/*.exe artifacts/ || true
|
mv app/dist/*.exe artifacts/ || true
|
||||||
mv app/dist/*.zip artifacts/ || true
|
mv app/dist/*.zip artifacts/ || true
|
||||||
@@ -111,23 +105,21 @@ jobs:
|
|||||||
|
|
||||||
mv app/dist/*.yml artifacts/ || true
|
mv app/dist/*.yml artifacts/ || true
|
||||||
rm artifacts/builder-debug.yml
|
rm artifacts/builder-debug.yml
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}
|
name: '${{ matrix.os }}'
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: 'startsWith(github.ref, ''refs/tags/'')'
|
||||||
with:
|
with:
|
||||||
files: 'artifacts/**'
|
files: artifacts/**
|
||||||
prerelease: true
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
|
||||||
- name: Print content of notarization-error.log
|
- name: Print content of notarization-error.log
|
||||||
if: failure() && matrix.os == 'macos-14'
|
if: failure() && matrix.os == 'macos-14'
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
find . -type f -name "notarization-error.log" -exec echo "=== Start of {} ===" \; -exec cat {} \; -exec echo "=== End of {} ===" \;
|
find . -type f -name "notarization-error.log" -exec echo "=== Start of {} ===" \; -exec cat {} \; -exec echo "=== End of {} ===" \;
|
||||||
|
|||||||
85
.github/workflows/build-app-pro-beta.yaml
vendored
85
.github/workflows/build-app-pro-beta.yaml
vendored
@@ -1,23 +1,18 @@
|
|||||||
name: Electron app PREMIUM BETA
|
name: Electron app PREMIUM BETA
|
||||||
|
'on':
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-premium-beta.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-premium-beta.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: '${{ matrix.os }}'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# os: [windows-2022]
|
os:
|
||||||
# os: [ubuntu-22.04]
|
- macos-14
|
||||||
# os: [windows-2022, ubuntu-22.04]
|
- windows-2022
|
||||||
os: [macos-14, windows-2022, ubuntu-22.04]
|
- ubuntu-22.04
|
||||||
# os: [macOS-10.15]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install python 3.11 (MacOS)
|
- name: Install python 3.11 (MacOS)
|
||||||
if: matrix.os == 'macos-14'
|
if: matrix.os == 'macos-14'
|
||||||
@@ -26,7 +21,7 @@ jobs:
|
|||||||
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -35,14 +30,12 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 22.x
|
node-version: 22.x
|
||||||
|
|
||||||
- name: Checkout dbgate/dbgate-pro
|
- name: Checkout dbgate/dbgate-pro
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: dbgate/dbgate-pro
|
repository: dbgate/dbgate-pro
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: '${{ secrets.GH_TOKEN }}'
|
||||||
path: dbgate-pro
|
path: dbgate-pro
|
||||||
|
|
||||||
- name: Merge dbgate/dbgate-pro
|
- name: Merge dbgate/dbgate-pro
|
||||||
run: |
|
run: |
|
||||||
mkdir ../dbgate-pro
|
mkdir ../dbgate-pro
|
||||||
@@ -54,76 +47,82 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
node sync.js --nowatch
|
node sync.js --nowatch
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: adjustPackageJson
|
- name: adjustPackageJson
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
node adjustPackageJson --premium
|
node adjustPackageJson --premium
|
||||||
- name: setUpdaterChannel premium-beta
|
- name: setUpdaterChannel premium-beta
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
node setUpdaterChannel premium-beta
|
node setUpdaterChannel premium-beta
|
||||||
- name: yarn set timeout
|
- name: yarn set timeout
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn config set network-timeout 100000
|
yarn config set network-timeout 100000
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn install
|
yarn install
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
- name: fillPackagedPlugins
|
- name: fillPackagedPlugins
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn fillPackagedPlugins
|
yarn fillPackagedPlugins
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn run build:app
|
yarn run build:app
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }} # token for electron publish
|
GH_TOKEN: '${{ secrets.GH_TOKEN }}'
|
||||||
|
WIN_CSC_LINK: '${{ secrets.WINCERT_2025 }}'
|
||||||
WIN_CSC_LINK: ${{ secrets.WINCERT_2025 }}
|
WIN_CSC_KEY_PASSWORD: '${{ secrets.WINCERT_2025_PASSWORD }}'
|
||||||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_2025_PASSWORD }}
|
CSC_LINK: '${{ secrets.APPLECERT_CERTIFICATE }}'
|
||||||
# WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
CSC_KEY_PASSWORD: '${{ secrets.APPLECERT_PASSWORD }}'
|
||||||
# WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
APPLE_ID: '${{ secrets.APPLE_ID }}'
|
||||||
|
APPLE_TEAM_ID: '${{ secrets.APPLE_TEAM_ID }}'
|
||||||
CSC_LINK: ${{ secrets.APPLECERT_CERTIFICATE }}
|
APPLE_ID_PASSWORD: '${{ secrets.APPLE_ID_PASSWORD }}'
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.APPLECERT_PASSWORD }}
|
SNAPCRAFT_STORE_CREDENTIALS: '${{secrets.SNAPCRAFT_LOGIN}}'
|
||||||
|
APPLE_APP_SPECIFIC_PASSWORD: '${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}'
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
||||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
|
||||||
|
|
||||||
APPLE_APP_SPECIFIC_PASSWORD: ${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}
|
|
||||||
|
|
||||||
# DEBUG: electron-builder, electron-notarize, notarytool
|
|
||||||
|
|
||||||
|
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
|
|
||||||
|
cp ../dbgate-merged/app/dist/*.deb artifacts/dbgate-premium-beta.deb || true
|
||||||
cp ../dbgate-merged/app/dist/*x86*.AppImage artifacts/dbgate-premium-beta.AppImage || true
|
cp ../dbgate-merged/app/dist/*x86*.AppImage artifacts/dbgate-premium-beta.AppImage || true
|
||||||
|
cp ../dbgate-merged/app/dist/*arm64*.AppImage artifacts/dbgate-premium-beta-arm64.AppImage || true
|
||||||
|
cp ../dbgate-merged/app/dist/*armv7l*.AppImage artifacts/dbgate-premium-beta-armv7l.AppImage || true
|
||||||
cp ../dbgate-merged/app/dist/*win*.exe artifacts/dbgate-premium-beta.exe || true
|
cp ../dbgate-merged/app/dist/*win*.exe artifacts/dbgate-premium-beta.exe || true
|
||||||
cp ../dbgate-merged/app/dist/*-mac_x64.dmg artifacts/dbgate-premium-beta.dmg || true
|
cp ../dbgate-merged/app/dist/*win_x64.zip artifacts/dbgate-windows-premium-beta.zip || true
|
||||||
|
cp ../dbgate-merged/app/dist/*win_arm64.zip artifacts/dbgate-windows-premium-beta-arm64.zip || true
|
||||||
|
cp ../dbgate-merged/app/dist/*-mac_universal.dmg artifacts/dbgate-premium-beta.dmg || true
|
||||||
|
cp ../dbgate-merged/app/dist/*-mac_x64.dmg artifacts/dbgate-premium-beta-x64.dmg || true
|
||||||
|
cp ../dbgate-merged/app/dist/*-mac_arm64.dmg artifacts/dbgate-premium-beta-arm64.dmg || true
|
||||||
|
mv ../dbgate-merged/app/dist/*.snap artifacts/dbgate-premium-beta.snap || true
|
||||||
|
|
||||||
mv ../dbgate-merged/app/dist/*.exe artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.exe artifacts/ || true
|
||||||
mv ../dbgate-merged/app/dist/*.zip artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.zip artifacts/ || true
|
||||||
@@ -136,25 +135,23 @@ jobs:
|
|||||||
|
|
||||||
mv ../dbgate-merged/app/dist/*.yml artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.yml artifacts/ || true
|
||||||
rm artifacts/builder-debug.yml
|
rm artifacts/builder-debug.yml
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}
|
name: '${{ matrix.os }}'
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: 'startsWith(github.ref, ''refs/tags/'')'
|
||||||
with:
|
with:
|
||||||
files: 'artifacts/**'
|
files: artifacts/**
|
||||||
prerelease: true
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
|
||||||
- name: Print content of notarization-error.log
|
- name: Print content of notarization-error.log
|
||||||
if: failure() && matrix.os == 'macos-14'
|
if: failure() && matrix.os == 'macos-14'
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
find . -type f -name "notarization-error.log" -exec echo "=== Start of {} ===" \; -exec cat {} \; -exec echo "=== End of {} ===" \;
|
find . -type f -name "notarization-error.log" -exec echo "=== Start of {} ===" \; -exec cat {} \; -exec echo "=== End of {} ===" \;
|
||||||
|
|||||||
90
.github/workflows/build-app-pro.yaml
vendored
90
.github/workflows/build-app-pro.yaml
vendored
@@ -1,24 +1,18 @@
|
|||||||
name: Electron app PREMIUM
|
name: Electron app PREMIUM
|
||||||
|
'on':
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
||||||
|
|
||||||
# branches:
|
|
||||||
# - production
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: '${{ matrix.os }}'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# os: [ubuntu-22.04, windows-2016]
|
os:
|
||||||
os: [macos-14, windows-2022, ubuntu-22.04]
|
- macos-14
|
||||||
|
- windows-2022
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install python 3.11 (MacOS)
|
- name: Install python 3.11 (MacOS)
|
||||||
if: matrix.os == 'macos-14'
|
if: matrix.os == 'macos-14'
|
||||||
@@ -27,7 +21,7 @@ jobs:
|
|||||||
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -36,14 +30,12 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 22.x
|
node-version: 22.x
|
||||||
|
|
||||||
- name: Checkout dbgate/dbgate-pro
|
- name: Checkout dbgate/dbgate-pro
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: dbgate/dbgate-pro
|
repository: dbgate/dbgate-pro
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: '${{ secrets.GH_TOKEN }}'
|
||||||
path: dbgate-pro
|
path: dbgate-pro
|
||||||
|
|
||||||
- name: Merge dbgate/dbgate-pro
|
- name: Merge dbgate/dbgate-pro
|
||||||
run: |
|
run: |
|
||||||
mkdir ../dbgate-pro
|
mkdir ../dbgate-pro
|
||||||
@@ -55,99 +47,111 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
node sync.js --nowatch
|
node sync.js --nowatch
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: adjustPackageJson
|
- name: adjustPackageJson
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
node adjustPackageJson --premium
|
node adjustPackageJson --premium
|
||||||
- name: setUpdaterChannel premium
|
- name: setUpdaterChannel premium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
node setUpdaterChannel premium
|
node setUpdaterChannel premium
|
||||||
- name: yarn set timeout
|
- name: yarn set timeout
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn config set network-timeout 100000
|
yarn config set network-timeout 100000
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn install
|
yarn install
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
- name: fillPackagedPlugins
|
- name: fillPackagedPlugins
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn fillPackagedPlugins
|
yarn fillPackagedPlugins
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn run build:app
|
yarn run build:app
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }} # token for electron publish
|
GH_TOKEN: '${{ secrets.GH_TOKEN }}'
|
||||||
|
WIN_CSC_LINK: '${{ secrets.WINCERT_2025 }}'
|
||||||
WIN_CSC_LINK: ${{ secrets.WINCERT_2025 }}
|
WIN_CSC_KEY_PASSWORD: '${{ secrets.WINCERT_2025_PASSWORD }}'
|
||||||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_2025_PASSWORD }}
|
CSC_LINK: '${{ secrets.APPLECERT_CERTIFICATE }}'
|
||||||
# WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
CSC_KEY_PASSWORD: '${{ secrets.APPLECERT_PASSWORD }}'
|
||||||
# WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
APPLE_ID: '${{ secrets.APPLE_ID }}'
|
||||||
|
APPLE_TEAM_ID: '${{ secrets.APPLE_TEAM_ID }}'
|
||||||
CSC_LINK: ${{ secrets.APPLECERT_CERTIFICATE }}
|
APPLE_ID_PASSWORD: '${{ secrets.APPLE_ID_PASSWORD }}'
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.APPLECERT_PASSWORD }}
|
SNAPCRAFT_STORE_CREDENTIALS: '${{secrets.SNAPCRAFT_LOGIN}}'
|
||||||
|
APPLE_APP_SPECIFIC_PASSWORD: '${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}'
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
||||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
|
||||||
|
|
||||||
APPLE_APP_SPECIFIC_PASSWORD: ${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}
|
|
||||||
|
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
|
|
||||||
|
cp ../dbgate-merged/app/dist/*.deb artifacts/dbgate-premium-latest.deb || true
|
||||||
cp ../dbgate-merged/app/dist/*x86*.AppImage artifacts/dbgate-premium-latest.AppImage || true
|
cp ../dbgate-merged/app/dist/*x86*.AppImage artifacts/dbgate-premium-latest.AppImage || true
|
||||||
cp ../dbgate-merged/app/dist/*.exe artifacts/dbgate-premium-latest.exe || true
|
cp ../dbgate-merged/app/dist/*arm64*.AppImage artifacts/dbgate-premium-latest-arm64.AppImage || true
|
||||||
cp ../dbgate-merged/app/dist/*win_x64.zip artifacts/dbgate-premium-windows-latest.zip || true
|
cp ../dbgate-merged/app/dist/*armv7l*.AppImage artifacts/dbgate-premium-latest-armv7l.AppImage || true
|
||||||
cp ../dbgate-merged/app/dist/*win_arm64.zip artifacts/dbgate-premium-windows-latest-arm64.zip || true
|
cp ../dbgate-merged/app/dist/*win*.exe artifacts/dbgate-premium-latest.exe || true
|
||||||
|
cp ../dbgate-merged/app/dist/*win_x64.zip artifacts/dbgate-windows-premium-latest.zip || true
|
||||||
|
cp ../dbgate-merged/app/dist/*win_arm64.zip artifacts/dbgate-windows-premium-latest-arm64.zip || true
|
||||||
cp ../dbgate-merged/app/dist/*-mac_universal.dmg artifacts/dbgate-premium-latest.dmg || true
|
cp ../dbgate-merged/app/dist/*-mac_universal.dmg artifacts/dbgate-premium-latest.dmg || true
|
||||||
cp ../dbgate-merged/app/dist/*-mac_x64.dmg artifacts/dbgate-premium-latest-x64.dmg || true
|
cp ../dbgate-merged/app/dist/*-mac_x64.dmg artifacts/dbgate-premium-latest-x64.dmg || true
|
||||||
cp ../dbgate-merged/app/dist/*-mac_arm64.dmg artifacts/dbgate-premium-latest-arm64.dmg || true
|
cp ../dbgate-merged/app/dist/*-mac_arm64.dmg artifacts/dbgate-premium-latest-arm64.dmg || true
|
||||||
|
mv ../dbgate-merged/app/dist/*.snap artifacts/dbgate-premium-latest.snap || true
|
||||||
|
|
||||||
mv ../dbgate-merged/app/dist/*.exe artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.exe artifacts/ || true
|
||||||
mv ../dbgate-merged/app/dist/*.zip artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.zip artifacts/ || true
|
||||||
mv ../dbgate-merged/app/dist/*.tar.gz artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.tar.gz artifacts/ || true
|
||||||
mv ../dbgate-merged/app/dist/*.AppImage artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.AppImage artifacts/ || true
|
||||||
mv ../dbgate-merged/app/dist/*.deb artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.deb artifacts/ || true
|
||||||
|
mv ../dbgate-merged/app/dist/*.snap artifacts/ || true
|
||||||
mv ../dbgate-merged/app/dist/*.dmg artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.dmg artifacts/ || true
|
||||||
mv ../dbgate-merged/app/dist/*.blockmap artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.blockmap artifacts/ || true
|
||||||
|
|
||||||
mv ../dbgate-merged/app/dist/*.yml artifacts/ || true
|
mv ../dbgate-merged/app/dist/*.yml artifacts/ || true
|
||||||
rm artifacts/builder-debug.yml
|
rm artifacts/builder-debug.yml
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}
|
name: '${{ matrix.os }}'
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: 'startsWith(github.ref, ''refs/tags/'')'
|
||||||
with:
|
with:
|
||||||
files: 'artifacts/**'
|
files: artifacts/**
|
||||||
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
- name: Print content of notarization-error.log
|
||||||
|
if: failure() && matrix.os == 'macos-14'
|
||||||
|
run: |
|
||||||
|
cd ..
|
||||||
|
cd dbgate-merged
|
||||||
|
|
||||||
|
find . -type f -name "notarization-error.log" -exec echo "=== Start of {} ===" \; -exec cat {} \; -exec echo "=== End of {} ===" \;
|
||||||
|
|||||||
121
.github/workflows/build-app.yaml
vendored
121
.github/workflows/build-app.yaml
vendored
@@ -1,24 +1,18 @@
|
|||||||
name: Electron app
|
name: Electron app
|
||||||
|
'on':
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
||||||
|
|
||||||
# branches:
|
|
||||||
# - production
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: '${{ matrix.os }}'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# os: [ubuntu-22.04, windows-2016]
|
os:
|
||||||
os: [macos-14, windows-2022, ubuntu-22.04]
|
- macos-14
|
||||||
|
- windows-2022
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install python 3.11 (MacOS)
|
- name: Install python 3.11 (MacOS)
|
||||||
if: matrix.os == 'macos-14'
|
if: matrix.os == 'macos-14'
|
||||||
@@ -27,7 +21,7 @@ jobs:
|
|||||||
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
echo "PYTHON=/opt/homebrew/bin/python3.11" >> $GITHUB_ENV
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -38,61 +32,51 @@ jobs:
|
|||||||
node-version: 22.x
|
node-version: 22.x
|
||||||
- name: adjustPackageJson
|
- name: adjustPackageJson
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
node adjustPackageJson --community
|
node adjustPackageJson --community
|
||||||
- name: yarn set timeout
|
- name: yarn set timeout
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn config set network-timeout 100000
|
yarn config set network-timeout 100000
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
# yarn --version
|
|
||||||
# yarn config set network-timeout 300000
|
|
||||||
yarn install
|
yarn install
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
- name: fillPackagedPlugins
|
- name: fillPackagedPlugins
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn fillPackagedPlugins
|
yarn fillPackagedPlugins
|
||||||
- name: Install Snapcraft
|
- name: Install Snapcraft
|
||||||
if: matrix.os == 'ubuntu-22.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
uses: samuelmeuli/action-snapcraft@v1
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn run build:app
|
yarn run build:app
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }} # token for electron publish
|
GH_TOKEN: '${{ secrets.GH_TOKEN }}'
|
||||||
|
WIN_CSC_LINK: '${{ secrets.WINCERT_2025 }}'
|
||||||
WIN_CSC_LINK: ${{ secrets.WINCERT_2025 }}
|
WIN_CSC_KEY_PASSWORD: '${{ secrets.WINCERT_2025_PASSWORD }}'
|
||||||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_2025_PASSWORD }}
|
CSC_LINK: '${{ secrets.APPLECERT_CERTIFICATE }}'
|
||||||
# WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
CSC_KEY_PASSWORD: '${{ secrets.APPLECERT_PASSWORD }}'
|
||||||
# WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
APPLE_ID: '${{ secrets.APPLE_ID }}'
|
||||||
|
APPLE_TEAM_ID: '${{ secrets.APPLE_TEAM_ID }}'
|
||||||
CSC_LINK: ${{ secrets.APPLECERT_CERTIFICATE }}
|
APPLE_ID_PASSWORD: '${{ secrets.APPLE_ID_PASSWORD }}'
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.APPLECERT_PASSWORD }}
|
SNAPCRAFT_STORE_CREDENTIALS: '${{secrets.SNAPCRAFT_LOGIN}}'
|
||||||
|
APPLE_APP_SPECIFIC_PASSWORD: '${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}'
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
||||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
|
||||||
|
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}}
|
|
||||||
APPLE_APP_SPECIFIC_PASSWORD: ${{secrets.APPLE_APP_SPECIFIC_PASSWORD}}
|
|
||||||
|
|
||||||
- name: generatePadFile
|
- name: generatePadFile
|
||||||
run: |
|
run: |
|
||||||
yarn generatePadFile
|
yarn generatePadFile
|
||||||
|
|
||||||
# - name: publishSnap
|
|
||||||
# if: matrix.os == 'ubuntu-22.04'
|
|
||||||
# run: |
|
|
||||||
# snapcraft upload --release=stable app/dist/*.snap
|
|
||||||
# env:
|
|
||||||
# SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}}
|
|
||||||
|
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
@@ -101,75 +85,44 @@ jobs:
|
|||||||
cp app/dist/*x86*.AppImage artifacts/dbgate-latest.AppImage || true
|
cp app/dist/*x86*.AppImage artifacts/dbgate-latest.AppImage || true
|
||||||
cp app/dist/*arm64*.AppImage artifacts/dbgate-latest-arm64.AppImage || true
|
cp app/dist/*arm64*.AppImage artifacts/dbgate-latest-arm64.AppImage || true
|
||||||
cp app/dist/*armv7l*.AppImage artifacts/dbgate-latest-armv7l.AppImage || true
|
cp app/dist/*armv7l*.AppImage artifacts/dbgate-latest-armv7l.AppImage || true
|
||||||
cp app/dist/*.exe artifacts/dbgate-latest.exe || true
|
cp app/dist/*win*.exe artifacts/dbgate-latest.exe || true
|
||||||
cp app/dist/*win_x64.zip artifacts/dbgate-windows-latest.zip || true
|
cp app/dist/*win_x64.zip artifacts/dbgate-windows-latest.zip || true
|
||||||
cp app/dist/*win_arm64.zip artifacts/dbgate-windows-latest-arm64.zip || true
|
cp app/dist/*win_arm64.zip artifacts/dbgate-windows-latest-arm64.zip || true
|
||||||
cp app/dist/*-mac_universal.dmg artifacts/dbgate-latest.dmg || true
|
cp app/dist/*-mac_universal.dmg artifacts/dbgate-latest.dmg || true
|
||||||
cp app/dist/*-mac_x64.dmg artifacts/dbgate-latest-x64.dmg || true
|
cp app/dist/*-mac_x64.dmg artifacts/dbgate-latest-x64.dmg || true
|
||||||
cp app/dist/*-mac_arm64.dmg artifacts/dbgate-latest-arm64.dmg || true
|
cp app/dist/*-mac_arm64.dmg artifacts/dbgate-latest-arm64.dmg || true
|
||||||
|
mv app/dist/*.snap artifacts/dbgate-latest.snap || true
|
||||||
|
|
||||||
mv app/dist/*.exe artifacts/ || true
|
mv app/dist/*.exe artifacts/ || true
|
||||||
mv app/dist/*.zip artifacts/ || true
|
mv app/dist/*.zip artifacts/ || true
|
||||||
mv app/dist/*.tar.gz artifacts/ || true
|
mv app/dist/*.tar.gz artifacts/ || true
|
||||||
mv app/dist/*.AppImage artifacts/ || true
|
mv app/dist/*.AppImage artifacts/ || true
|
||||||
mv app/dist/*.deb artifacts/ || true
|
mv app/dist/*.deb artifacts/ || true
|
||||||
|
mv app/dist/*.snap artifacts/ || true
|
||||||
mv app/dist/*.dmg artifacts/ || true
|
mv app/dist/*.dmg artifacts/ || true
|
||||||
mv app/dist/*.snap artifacts/dbgate-latest.snap || true
|
|
||||||
mv app/dist/*.blockmap artifacts/ || true
|
mv app/dist/*.blockmap artifacts/ || true
|
||||||
|
|
||||||
mv app/dist/*.yml artifacts/ || true
|
mv app/dist/*.yml artifacts/ || true
|
||||||
rm artifacts/builder-debug.yml
|
rm artifacts/builder-debug.yml
|
||||||
|
|
||||||
# - name: Copy artifacts Linux, MacOs
|
|
||||||
# if: matrix.os != 'windows-2016'
|
|
||||||
# run: |
|
|
||||||
# mkdir artifacts
|
|
||||||
|
|
||||||
# cp app/dist/*.AppImage artifacts/ || true
|
|
||||||
# cp app/dist/*.dmg artifacts/ || true
|
|
||||||
# cp app/dist/*.deb artifacts/ || true
|
|
||||||
|
|
||||||
# mv app/dist/*.deb artifacts/dbgate-linux.deb || true
|
|
||||||
# mv app/dist/*.AppImage artifacts/dbgate-linux.AppImage || true
|
|
||||||
# mv app/dist/*.dmg artifacts/dbgate-mac.dmg || true
|
|
||||||
|
|
||||||
# - name: Copy artifacts Win
|
|
||||||
# if: matrix.os == 'windows-2016'
|
|
||||||
# run: |
|
|
||||||
# mkdir artifacts
|
|
||||||
|
|
||||||
# cp app/dist/*.exe artifacts/ || true
|
|
||||||
|
|
||||||
# mv app/dist/*.exe artifacts/dbgate-windows.exe
|
|
||||||
|
|
||||||
# mv app/dist/latest.yml artifacts/latest.yml || true
|
|
||||||
|
|
||||||
- name: Copy PAD file
|
- name: Copy PAD file
|
||||||
if: matrix.os == 'windows-2022'
|
if: matrix.os == 'windows-2022'
|
||||||
run: |
|
run: |
|
||||||
mv app/dist/dbgate-pad.xml artifacts/ || true
|
mv app/dist/dbgate-pad.xml artifacts/ || true
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}
|
name: '${{ matrix.os }}'
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: 'startsWith(github.ref, ''refs/tags/'')'
|
||||||
with:
|
with:
|
||||||
files: 'artifacts/**'
|
files: artifacts/**
|
||||||
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
- name: Print content of notarization-error.log
|
||||||
|
if: failure() && matrix.os == 'macos-14'
|
||||||
|
run: |
|
||||||
|
|
||||||
# - name: Create Release
|
find . -type f -name "notarization-error.log" -exec echo "=== Start of {} ===" \; -exec cat {} \; -exec echo "=== End of {} ===" \;
|
||||||
# id: create_release
|
|
||||||
# uses: actions/create-release@v1
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# with:
|
|
||||||
# tag_name: ${{ github.ref }}
|
|
||||||
# release_name: Release ${{ github.ref }}
|
|
||||||
# draft: false
|
|
||||||
# prerelease: false
|
|
||||||
|
|||||||
68
.github/workflows/build-aws-pro-beta.yaml
vendored
68
.github/workflows/build-aws-pro-beta.yaml
vendored
@@ -1,47 +1,38 @@
|
|||||||
name: AWS image PREMIUM
|
name: AWS image PREMIUM
|
||||||
|
'on':
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
# - 'v[0-9]+.[0-9]+.[0-9]+-premium-beta.[0-9]+'
|
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-packer-beta.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-packer-beta.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: '${{ matrix.os }}'
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04]
|
os:
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 18.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
|
|
||||||
- name: Setup `packer`
|
- name: Setup `packer`
|
||||||
uses: hashicorp/setup-packer@main
|
uses: hashicorp/setup-packer@main
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- name: Checkout dbgate/dbgate-pro
|
- name: Checkout dbgate/dbgate-pro
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: dbgate/dbgate-pro
|
repository: dbgate/dbgate-pro
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: '${{ secrets.GH_TOKEN }}'
|
||||||
path: dbgate-pro
|
path: dbgate-pro
|
||||||
|
|
||||||
- name: Merge dbgate/dbgate-pro
|
- name: Merge dbgate/dbgate-pro
|
||||||
run: |
|
run: |
|
||||||
mkdir ../dbgate-pro
|
mkdir ../dbgate-pro
|
||||||
@@ -53,33 +44,28 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
node sync.js --nowatch
|
node sync.js --nowatch
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: adjustPackageJson
|
- name: adjustPackageJson
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
node adjustPackageJson --premium
|
node adjustPackageJson --premium
|
||||||
|
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
|
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
|
|
||||||
- name: Prepare packer build
|
- name: Prepare packer build
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
@@ -87,62 +73,48 @@ jobs:
|
|||||||
yarn run prepare:packer
|
yarn run prepare:packer
|
||||||
cd packer
|
cd packer
|
||||||
zip -r cloud-build.zip build
|
zip -r cloud-build.zip build
|
||||||
|
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
cp ../dbgate-merged/packer/cloud-build.zip artifacts/cloud-build.zip || true
|
cp ../dbgate-merged/packer/cloud-build.zip artifacts/cloud-build.zip || true
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}
|
name: '${{ matrix.os }}'
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: 'startsWith(github.ref, ''refs/tags/'')'
|
||||||
with:
|
with:
|
||||||
files: 'artifacts/**'
|
files: artifacts/**
|
||||||
prerelease: true
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
|
||||||
- name: Run `packer init`
|
- name: Run `packer init`
|
||||||
run: |
|
run: |
|
||||||
cd ../dbgate-merged/packer
|
cd ../dbgate-merged/packer
|
||||||
packer init ./aws-ubuntu.pkr.hcl
|
packer init ./aws-ubuntu.pkr.hcl
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
AWS_ACCESS_KEY_ID: '${{secrets.AWS_ACCESS_KEY_ID}}'
|
||||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
AWS_SECRET_ACCESS_KEY: '${{secrets.AWS_SECRET_ACCESS_KEY}}'
|
||||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
AWS_DEFAULT_REGION: '${{secrets.AWS_DEFAULT_REGION}}'
|
||||||
|
|
||||||
- name: Run `packer build`
|
- name: Run `packer build`
|
||||||
run: |
|
run: |
|
||||||
cd ../dbgate-merged/packer
|
cd ../dbgate-merged/packer
|
||||||
packer build ./aws-ubuntu.pkr.hcl
|
packer build ./aws-ubuntu.pkr.hcl
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
AWS_ACCESS_KEY_ID: '${{secrets.AWS_ACCESS_KEY_ID}}'
|
||||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
AWS_SECRET_ACCESS_KEY: '${{secrets.AWS_SECRET_ACCESS_KEY}}'
|
||||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
AWS_DEFAULT_REGION: '${{secrets.AWS_DEFAULT_REGION}}'
|
||||||
|
|
||||||
# - name: Install AWS CLI
|
|
||||||
# run: |
|
|
||||||
# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
|
||||||
# unzip awscliv2.zip
|
|
||||||
# sudo ./aws/install
|
|
||||||
# sudo apt-get install jq -y
|
|
||||||
|
|
||||||
- name: Install jq
|
- name: Install jq
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install jq -y
|
sudo apt-get install jq -y
|
||||||
|
|
||||||
- name: Delete old AMIs
|
- name: Delete old AMIs
|
||||||
run: |
|
run: |
|
||||||
cd ../dbgate-merged/packer
|
cd ../dbgate-merged/packer
|
||||||
chmod +x delete-old-amis.sh
|
chmod +x delete-old-amis.sh
|
||||||
./delete-old-amis.sh
|
./delete-old-amis.sh
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
AWS_ACCESS_KEY_ID: '${{secrets.AWS_ACCESS_KEY_ID}}'
|
||||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
AWS_SECRET_ACCESS_KEY: '${{secrets.AWS_SECRET_ACCESS_KEY}}'
|
||||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
AWS_DEFAULT_REGION: '${{secrets.AWS_DEFAULT_REGION}}'
|
||||||
|
|||||||
46
.github/workflows/build-docker-pro.yaml
vendored
46
.github/workflows/build-docker-pro.yaml
vendored
@@ -1,35 +1,29 @@
|
|||||||
name: Docker image PREMIUM
|
name: Docker image PREMIUM
|
||||||
|
'on':
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-premium-beta.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-premium-beta.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: '${{ matrix.os }}'
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04]
|
os:
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: |
|
images: dbgate/dbgate-premium
|
||||||
dbgate/dbgate-premium
|
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=false
|
||||||
tags: |
|
tags: |
|
||||||
@@ -37,19 +31,16 @@ jobs:
|
|||||||
|
|
||||||
type=match,pattern=\d+.\d+.\d+,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
type=match,pattern=\d+.\d+.\d+,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
||||||
type=raw,value=latest,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
type=raw,value=latest,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
||||||
|
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 18.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
|
|
||||||
- name: Checkout dbgate/dbgate-pro
|
- name: Checkout dbgate/dbgate-pro
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: dbgate/dbgate-pro
|
repository: dbgate/dbgate-pro
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: '${{ secrets.GH_TOKEN }}'
|
||||||
path: dbgate-pro
|
path: dbgate-pro
|
||||||
|
|
||||||
- name: Merge dbgate/dbgate-pro
|
- name: Merge dbgate/dbgate-pro
|
||||||
run: |
|
run: |
|
||||||
mkdir ../dbgate-pro
|
mkdir ../dbgate-pro
|
||||||
@@ -61,50 +52,51 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
node sync.js --nowatch
|
node sync.js --nowatch
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: adjustPackageJson
|
- name: adjustPackageJson
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
node adjustPackageJson --premium
|
|
||||||
|
|
||||||
|
node adjustPackageJson --premium
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn install
|
|
||||||
|
|
||||||
|
# yarn --version
|
||||||
|
# yarn config set network-timeout 300000
|
||||||
|
yarn install
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn setCurrentVersion
|
|
||||||
|
|
||||||
|
yarn setCurrentVersion
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
|
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
- name: Prepare docker image
|
- name: Prepare docker image
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn run prepare:docker
|
|
||||||
|
|
||||||
|
yarn run prepare:docker
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: '${{ secrets.DOCKER_USERNAME }}'
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: '${{ secrets.DOCKER_PASSWORD }}'
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ../dbgate-merged/docker
|
context: ../dbgate-merged/docker
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: '${{ steps.meta.outputs.tags }}'
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: 'linux/amd64,linux/arm64'
|
||||||
|
|||||||
48
.github/workflows/build-docker.yaml
vendored
48
.github/workflows/build-docker.yaml
vendored
@@ -1,35 +1,29 @@
|
|||||||
name: Docker image
|
name: Docker image Community
|
||||||
|
'on':
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: '${{ matrix.os }}'
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04]
|
os:
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: |
|
images: dbgate/dbgate
|
||||||
dbgate/dbgate
|
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=false
|
||||||
tags: |
|
tags: |
|
||||||
@@ -37,7 +31,6 @@ jobs:
|
|||||||
|
|
||||||
type=match,pattern=\d+.\d+.\d+,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
type=match,pattern=\d+.\d+.\d+,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
||||||
type=raw,value=latest,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
type=raw,value=latest,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
||||||
|
|
||||||
- name: Docker alpine meta
|
- name: Docker alpine meta
|
||||||
id: alpmeta
|
id: alpmeta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
@@ -51,56 +44,53 @@ jobs:
|
|||||||
|
|
||||||
type=match,pattern=\d+.\d+.\d+,suffix=-alpine,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
type=match,pattern=\d+.\d+.\d+,suffix=-alpine,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
||||||
type=raw,value=alpine,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
type=raw,value=alpine,enable=${{ !contains(github.ref_name, '-docker.') && !contains(github.ref_name, '-beta.') }}
|
||||||
|
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 18.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
|
|
||||||
- name: adjustPackageJson
|
- name: adjustPackageJson
|
||||||
run: |
|
run: |
|
||||||
node adjustPackageJson --community
|
|
||||||
|
|
||||||
|
node adjustPackageJson --community
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
# yarn --version
|
# yarn --version
|
||||||
# yarn config set network-timeout 300000
|
# yarn config set network-timeout 300000
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
yarn setCurrentVersion
|
|
||||||
|
|
||||||
|
yarn setCurrentVersion
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
- name: Prepare docker image
|
- name: Prepare docker image
|
||||||
run: |
|
run: |
|
||||||
yarn run prepare:docker
|
|
||||||
|
|
||||||
|
yarn run prepare:docker
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: '${{ secrets.DOCKER_USERNAME }}'
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: '${{ secrets.DOCKER_PASSWORD }}'
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./docker
|
context: ./docker
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: '${{ steps.meta.outputs.tags }}'
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: 'linux/amd64,linux/arm64,linux/arm/v7'
|
||||||
|
|
||||||
- name: Build and push alpine
|
- name: Build and push alpine
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./docker
|
context: ./docker
|
||||||
file: ./docker/Dockerfile-alpine
|
file: ./docker/Dockerfile-alpine
|
||||||
tags: ${{ steps.alpmeta.outputs.tags }}
|
tags: '${{ steps.alpmeta.outputs.tags }}'
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: 'linux/amd64,linux/arm64,linux/arm/v7'
|
||||||
|
|||||||
39
.github/workflows/build-npm-pro.yaml
vendored
39
.github/workflows/build-npm-pro.yaml
vendored
@@ -1,31 +1,20 @@
|
|||||||
name: NPM packages PREMIUM
|
name: NPM packages PREMIUM
|
||||||
|
'on':
|
||||||
# on: [push]
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
|
||||||
|
|
||||||
# on:
|
|
||||||
# push:
|
|
||||||
# branches:
|
|
||||||
# - production
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: '${{ matrix.os }}'
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04]
|
os:
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -34,14 +23,12 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
|
|
||||||
- name: Checkout dbgate/dbgate-pro
|
- name: Checkout dbgate/dbgate-pro
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: dbgate/dbgate-pro
|
repository: dbgate/dbgate-pro
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: '${{ secrets.GH_TOKEN }}'
|
||||||
path: dbgate-pro
|
path: dbgate-pro
|
||||||
|
|
||||||
- name: Merge dbgate/dbgate-pro
|
- name: Merge dbgate/dbgate-pro
|
||||||
run: |
|
run: |
|
||||||
mkdir ../dbgate-pro
|
mkdir ../dbgate-pro
|
||||||
@@ -53,65 +40,55 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
node sync.js --nowatch
|
node sync.js --nowatch
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: adjustNpmPackageJsonPremium
|
- name: adjustNpmPackageJsonPremium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
node adjustNpmPackageJsonPremium
|
node adjustNpmPackageJsonPremium
|
||||||
|
|
||||||
- name: Configure NPM token
|
- name: Configure NPM token
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
||||||
|
|
||||||
- name: Remove dbmodel - should be not published
|
- name: Remove dbmodel - should be not published
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
rm -rf packages/dbmodel
|
rm -rf packages/dbmodel
|
||||||
|
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
|
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
|
|
||||||
- name: Publish dbgate-api-premium
|
- name: Publish dbgate-api-premium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/packages/api
|
cd dbgate-merged/packages/api
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-web-premium
|
- name: Publish dbgate-web-premium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/packages/web
|
cd dbgate-merged/packages/web
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-serve-premium
|
- name: Publish dbgate-serve-premium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/packages/serve
|
cd dbgate-merged/packages/serve
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-cosmosdb
|
- name: Publish dbgate-plugin-cosmosdb
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
48
.github/workflows/build-npm.yaml
vendored
48
.github/workflows/build-npm.yaml
vendored
@@ -1,31 +1,20 @@
|
|||||||
name: NPM packages
|
name: NPM packages
|
||||||
|
'on':
|
||||||
# on: [push]
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
|
||||||
|
|
||||||
# on:
|
|
||||||
# push:
|
|
||||||
# branches:
|
|
||||||
# - production
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
runs-on: '${{ matrix.os }}'
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04]
|
os:
|
||||||
|
- ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Context
|
- name: Context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: '${{ toJson(github) }}'
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@@ -34,37 +23,30 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
|
|
||||||
- name: Configure NPM token
|
- name: Configure NPM token
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
|
||||||
run: |
|
run: |
|
||||||
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
||||||
|
|
||||||
- name: yarn install
|
- name: yarn install
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: setCurrentVersion
|
- name: setCurrentVersion
|
||||||
run: |
|
run: |
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
|
|
||||||
- name: printSecrets
|
- name: printSecrets
|
||||||
run: |
|
run: |
|
||||||
yarn printSecrets
|
yarn printSecrets
|
||||||
env:
|
env:
|
||||||
GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}}
|
GIST_UPLOAD_SECRET: '${{secrets.GIST_UPLOAD_SECRET}}'
|
||||||
|
|
||||||
- name: Publish types
|
- name: Publish types
|
||||||
working-directory: packages/types
|
working-directory: packages/types
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish tools
|
- name: Publish tools
|
||||||
working-directory: packages/tools
|
working-directory: packages/tools
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish sqltree
|
- name: Publish sqltree
|
||||||
working-directory: packages/sqltree
|
working-directory: packages/sqltree
|
||||||
run: |
|
run: |
|
||||||
@@ -74,82 +56,66 @@ jobs:
|
|||||||
working-directory: packages/api
|
working-directory: packages/api
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish datalib
|
- name: Publish datalib
|
||||||
working-directory: packages/datalib
|
working-directory: packages/datalib
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish filterparser
|
- name: Publish filterparser
|
||||||
working-directory: packages/filterparser
|
working-directory: packages/filterparser
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish web
|
- name: Publish web
|
||||||
working-directory: packages/web
|
working-directory: packages/web
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-serve
|
- name: Publish dbgate-serve
|
||||||
working-directory: packages/serve
|
working-directory: packages/serve
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbmodel
|
- name: Publish dbmodel
|
||||||
working-directory: packages/dbmodel
|
working-directory: packages/dbmodel
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-csv
|
- name: Publish dbgate-plugin-csv
|
||||||
working-directory: plugins/dbgate-plugin-csv
|
working-directory: plugins/dbgate-plugin-csv
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-xml
|
- name: Publish dbgate-plugin-xml
|
||||||
working-directory: plugins/dbgate-plugin-xml
|
working-directory: plugins/dbgate-plugin-xml
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-excel
|
- name: Publish dbgate-plugin-excel
|
||||||
working-directory: plugins/dbgate-plugin-excel
|
working-directory: plugins/dbgate-plugin-excel
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-mssql
|
- name: Publish dbgate-plugin-mssql
|
||||||
working-directory: plugins/dbgate-plugin-mssql
|
working-directory: plugins/dbgate-plugin-mssql
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-mysql
|
- name: Publish dbgate-plugin-mysql
|
||||||
working-directory: plugins/dbgate-plugin-mysql
|
working-directory: plugins/dbgate-plugin-mysql
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-mongo
|
- name: Publish dbgate-plugin-mongo
|
||||||
working-directory: plugins/dbgate-plugin-mongo
|
working-directory: plugins/dbgate-plugin-mongo
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-postgres
|
- name: Publish dbgate-plugin-postgres
|
||||||
working-directory: plugins/dbgate-plugin-postgres
|
working-directory: plugins/dbgate-plugin-postgres
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-sqlite
|
- name: Publish dbgate-plugin-sqlite
|
||||||
working-directory: plugins/dbgate-plugin-sqlite
|
working-directory: plugins/dbgate-plugin-sqlite
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-redis
|
- name: Publish dbgate-plugin-redis
|
||||||
working-directory: plugins/dbgate-plugin-redis
|
working-directory: plugins/dbgate-plugin-redis
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-oracle
|
- name: Publish dbgate-plugin-oracle
|
||||||
working-directory: plugins/dbgate-plugin-oracle
|
working-directory: plugins/dbgate-plugin-oracle
|
||||||
run: |
|
run: |
|
||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
- name: Publish dbgate-plugin-clickhouse
|
- name: Publish dbgate-plugin-clickhouse
|
||||||
working-directory: plugins/dbgate-plugin-clickhouse
|
working-directory: plugins/dbgate-plugin-clickhouse
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
37
.github/workflows/run-tests.yaml
vendored
37
.github/workflows/run-tests.yaml
vendored
@@ -1,16 +1,14 @@
|
|||||||
name: Run tests
|
name: Run tests
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
- 'feature/**'
|
- feature/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-runner:
|
test-runner:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:18
|
container: 'node:18'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies for cypress
|
- name: Install dependencies for cypress
|
||||||
run: |
|
run: |
|
||||||
@@ -37,7 +35,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd integration-tests
|
cd integration-tests
|
||||||
yarn test:ci
|
yarn test:ci
|
||||||
# yarn wait:ci
|
|
||||||
- name: Filter parser tests
|
- name: Filter parser tests
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
@@ -51,54 +48,42 @@ jobs:
|
|||||||
- uses: tanmen/jest-reporter@v1
|
- uses: tanmen/jest-reporter@v1
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
result-file: integration-tests/result.json
|
result-file: integration-tests/result.json
|
||||||
action-name: Integration tests
|
action-name: Integration tests
|
||||||
- uses: tanmen/jest-reporter@v1
|
- uses: tanmen/jest-reporter@v1
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
result-file: packages/filterparser/result.json
|
result-file: packages/filterparser/result.json
|
||||||
action-name: Filter parser test results
|
action-name: Filter parser test results
|
||||||
- uses: tanmen/jest-reporter@v1
|
- uses: tanmen/jest-reporter@v1
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
result-file: packages/datalib/result.json
|
result-file: packages/datalib/result.json
|
||||||
action-name: Datalib (perspectives) test results
|
action-name: Datalib (perspectives) test results
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: Pwd2020Db
|
POSTGRES_PASSWORD: Pwd2020Db
|
||||||
options: >-
|
options: '--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5'
|
||||||
--health-cmd pg_isready
|
|
||||||
--health-interval 10s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 5
|
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.0.18
|
image: 'mysql:8.0.18'
|
||||||
env:
|
env:
|
||||||
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
||||||
|
|
||||||
mssql:
|
mssql:
|
||||||
image: mcr.microsoft.com/mssql/server
|
image: mcr.microsoft.com/mssql/server
|
||||||
env:
|
env:
|
||||||
ACCEPT_EULA: Y
|
ACCEPT_EULA: 'Y'
|
||||||
SA_PASSWORD: Pwd2020Db
|
SA_PASSWORD: Pwd2020Db
|
||||||
MSSQL_PID: Express
|
MSSQL_PID: Express
|
||||||
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
image: bitnami/clickhouse:24.8.4
|
image: 'bitnami/clickhouse:24.8.4'
|
||||||
env:
|
env:
|
||||||
CLICKHOUSE_ADMIN_PASSWORD: Pwd2020Db
|
CLICKHOUSE_ADMIN_PASSWORD: Pwd2020Db
|
||||||
|
|
||||||
oracle:
|
oracle:
|
||||||
image: gvenzl/oracle-xe:21-slim
|
image: 'gvenzl/oracle-xe:21-slim'
|
||||||
env:
|
env:
|
||||||
ORACLE_PASSWORD: Pwd2020Db
|
ORACLE_PASSWORD: Pwd2020Db
|
||||||
|
|
||||||
# cockroachdb:
|
|
||||||
# image: cockroachdb/cockroach
|
|
||||||
|
|||||||
Reference in New Issue
Block a user