Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
test dirty version
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Nov 28, 2023
1 parent c88ad2a commit 61a360a
Showing 1 changed file with 9 additions and 55 deletions.
64 changes: 9 additions & 55 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Release

on:
workflow_dispatch:
inputs:
tag:
description: The release tag in v*.*.* format
required: true
push:
branches:
- test_release_version

env:
NODE_OPTIONS: "--max_old_space_size=4096"
Expand All @@ -14,19 +12,10 @@ jobs:
build:
runs-on: ubuntu-latest
env:
TAG: ${{ github.event.inputs.tag }}
RC_BRANCH: '' # the release branch is based on the RC branch
TAG: v0.5.0
RC_BRANCH: release-v0.5.0
steps:
- name: Validate input
run: |
echo $RC_BRANCH
if [[ ! $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Wrong tag format provided, please use v*.*.* format"
exit 1
fi
- name: Define release branch name in the format "release-*.*.*"
run: |
echo "RC_BRANCH=release-${TAG#v}" >> $GITHUB_ENV


- name: Configure git for private modules
env:
Expand All @@ -50,12 +39,6 @@ jobs:
with:
version: 8

- name: Everest Frontend - create tag
run: |
cd percona-everest-frontend
git tag -a $TAG -m "Release ${TAG}"
git push origin $TAG
- name: Everest Frontend - run with Node 16
uses: actions/setup-node@v4
with:
Expand All @@ -78,18 +61,10 @@ jobs:
ref: ${{ env.RC_BRANCH }}
fetch-depth: 0

- name: Everest Backend - create tag
- name: Everest Backend - check version
run: |
cd backend
# update image names in scripts. since the branch is created based on the RC-branch,
# the perconalab/everest:vX.Y.Z image reference is already present in the scripts
sed -i "s/perconalab\/everest/percona\/percona-everest/g" deploy/quickstart-k8s.yaml
echo "$(git diff deploy/quickstart-k8s.yaml)"
git commit -a -m "update scripts"
git tag -a $TAG -m "Release ${TAG}"
git push origin $TAG
echo "version: $(git describe --always --tags --dirty | cut -b2-)"
- name: Everest Backend - Embed Everest Frontend app into backend
run: |
Expand All @@ -103,26 +78,5 @@ jobs:
- name: Build Everest release
run: |
cd ${GITHUB_WORKSPACE}/backend
echo "version: $(git describe --always --tags --dirty | cut -b2-)"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make release
- name: Everest - Setup docker build metadata
uses: docker/metadata-action@v5
id: meta
with:
images: percona/percona-everest
tags: |
${{ env.TAG }}
latest
- name: Everest - Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Everest - Build and Push everest release image
uses: docker/build-push-action@v5
with:
context: backend
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 61a360a

Please sign in to comment.