This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
97 lines (93 loc) · 2.85 KB
/
rc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build and push RC image
on:
push:
branches:
- release-[0-9]+.[0-9]+.[0-9]+*
jobs:
build:
runs-on: ubuntu-latest
env:
VERSION: ''
RELEASE_BRANCH_NAME: ''
steps:
- name: Define env variables
run: |
echo "RELEASE_BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo 'VERSION=v${RELEASE_BRANCH_NAME#"release-"}' >> $GITHUB_ENV
- name: Extract version from the branch name
run: |
echo $VERSION
echo $RELEASE_BRANCH_NAME
# - 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: Check out Everest frontend
# uses: actions/checkout@v4
# with:
# repository: percona/percona-everest-frontend
# ref: 'main'
# path: percona-everest-frontend
# token: ${{ secrets.ROBOT_TOKEN }}
#
#
# - name: Run with Node 16
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
#
# - name: Install Bit Version Manager
# run: npm i -g @teambit/bvm
#
# - name: Install latest Bit version
# run: bvm install 0.2.3
#
# - name: Add bvm bin folder to path
# run: echo "$HOME/bin" >> $GITHUB_PATH
#
# - name: Set up bit config
# env:
# BIT_TOKEN: ${{ secrets.BIT_TOKEN }}
# run: bit config set user.token $BIT_TOKEN
#
# - name: Build Everest Frontend app
# run: |
# cd ${GITHUB_WORKSPACE}/percona-everest-frontend
# bit install --recurring-install
# bit snap
# bit artifacts percona.apps/everest --out-dir build
# mkdir ${GITHUB_WORKSPACE}/front
# cp -rf build/percona.apps_everest/react-common-js/everest/public/* ${GITHUB_WORKSPACE}/front/
#
# - name: Check out Everest Backend
# uses: actions/checkout@v4
# with:
# path: ./backend
# ref: 'main'
#
# - name: Embed Everest Frontend app into backend
# run: |
# cp -rf ${GITHUB_WORKSPACE}/front/* ${GITHUB_WORKSPACE}/backend/public/dist/
# cd ${GITHUB_WORKSPACE}/backend
#
# - name: Setup docker build metadata
# uses: docker/metadata-action@v4
# id: meta
# with:
# images: perconalab/everest
# tags: ${{ env.VERSION }}
#
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
#
# - name: Build and Push everest RC-image
# uses: docker/build-push-action@v4
# with:
# context: backend
# push: true
# tags: ${{ steps.meta.outputs.tags }}