This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
test dirty version #27
Workflow file for this run
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
name: Release | |
on: | |
push: | |
branches: | |
- test_release_version | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TAG: v0.5.0 | |
RC_BRANCH: release-0.5.0 | |
steps: | |
- name: Configure git for private modules | |
env: | |
ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }} | |
run: git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com" | |
- name: Configure git userdata for commits | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Everest RC CI triggered by ${{ github.actor }}" | |
- name: Everest Frontend - check out | |
uses: actions/checkout@v4 | |
with: | |
repository: percona/percona-everest-frontend | |
ref: ${{ env.RC_BRANCH }} | |
path: percona-everest-frontend | |
token: ${{ secrets.ROBOT_TOKEN }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Everest Frontend - run with Node 16 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
cache-dependency-path: percona-everest-frontend/pnpm-lock.yaml | |
- name: Everest Frontend - build app | |
run: | | |
cd percona-everest-frontend | |
pnpm install | |
EVEREST_OUT_DIR=build pnpm build | |
mkdir ${GITHUB_WORKSPACE}/front | |
cp -rvf ./build/* ${GITHUB_WORKSPACE}/front/ | |
- name: Everest Backend - check out | |
uses: actions/checkout@v4 | |
with: | |
path: ./backend | |
ref: ${{ env.RC_BRANCH }} | |
fetch-depth: 0 | |
- name: Everest Backend - check version | |
run: | | |
cd backend | |
echo "version: $(git describe --always --tags --dirty | cut -b2-)" | |
- name: Everest Backend - Embed Everest Frontend app into backend | |
run: | | |
cp -rf ${GITHUB_WORKSPACE}/front/* ${GITHUB_WORKSPACE}/backend/public/dist/ | |
cd ${GITHUB_WORKSPACE}/backend | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: './backend/go.mod' | |
- name: Build Everest release | |
run: | | |
cd ${GITHUB_WORKSPACE}/backend | |
git commit -a -m "chore FE" | |
echo "version: $(git describe --always --tags --dirty | cut -b2-)" | |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make release |