π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
skipped stable tag for prerelrease, modified docker tag for branch name with special characters (#5570)
Manish Gupta1da97d581442
diff --git a/.github/workflows/build-branch.yml b/.github/workflows/build-branch.ymlindex a847b06a62..d3e501a442 100644--- a/.github/workflows/build-branch.yml+++ b/.github/workflows/build-branch.yml@@ -2,6 +2,12 @@ name: Branch Buildon:workflow_dispatch:+ inputs:+ arm64:+ description: "Build for ARM64 architecture"+ required: false+ default: false+ type: booleanpush:branches:- master@@ -11,6 +17,8 @@ on:env:TARGET_BRANCH: ${{ github.ref_name || github.event.release.target_commitish }}+ ARM64_BUILD: ${{ github.event.inputs.arm64 }}+ IS_PRERELEASE: ${{ github.event.release.prerelease }}jobs:branch_build_setup:@@ -28,12 +36,13 @@ jobs:build_space: ${{ steps.changed_files.outputs.space_any_changed }}build_web: ${{ steps.changed_files.outputs.web_any_changed }}build_live: ${{ steps.changed_files.outputs.live_any_changed }}+ flat_branch_name: ${{ steps.set_env_variables.outputs.FLAT_BRANCH_NAME }}steps:- id: set_env_variablesname: Set Environment Variablesrun: |- if [ "${{ env.TARGET_BRANCH }}" == "master" ] || [ "${{ github.event_name }}" == "release" ]; then+ if [ "${{ env.TARGET_BRANCH }}" == "master" ] || [ "${{ env.ARM64_BUILD }}" == "true" ] || ([ "${{ github.event_name }}" == "release" ] && [ "${{ env.IS_PRERELEASE }}" != "true" ]); thenecho "BUILDX_DRIVER=cloud" >> $GITHUB_OUTPUTecho "BUILDX_VERSION=lab:latest" >> $GITHUB_OUTPUTecho "BUILDX_PLATFORMS=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT@@ -45,6 +54,8 @@ jobs:echo "BUILDX_ENDPOINT=" >> $GITHUB_OUTPUTfiecho "TARGET_BRANCH=${{ env.TARGET_BRANCH }}" >> $GITHUB_OUTPUT+ flat_branch_name=$(echo ${{ env.TARGET_BRANCH }} | sed 's/[^a-zA-Z0-9\._]/-/g')+ echo "FLAT_BRANCH_NAME=${flat_branch_name}" >> $GITHUB_OUTPUT- id: checkout_filesname: Checkout Files@@ -90,10 +101,11 @@ jobs:branch_build_push_web:if: ${{ needs.branch_build_setup.outputs.build_web == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}+ name: Build-Push Web Docker Imageruns-on: ubuntu-20.04needs: [branch_build_setup]env:- FRONTEND_TAG: makeplane/plane-frontend:${{ needs.branch_build_setup.outputs.gh_branch_name }}+ FRONTEND_TAG: makeplane/plane-frontend:${{ needs.branch_build_setup.outputs.flat_branch_name }}TARGET_BRANCH: ${{ needs.branch_build_setup.outputs.gh_branch_name }}BUILDX_DRIVER: ${{ needs.branch_build_setup.outputs.gh_buildx_driver }}BUILDX_VERSION: ${{ needs.branch_build_setup.outputs.gh_buildx_version }}@@ -103,7 +115,10 @@ jobs:- name: Set Frontend Docker Tagrun: |if [ "${{ github.event_name }}" == "release" ]; then- TAG=makeplane/plane-frontend:stable,makeplane/plane-frontend:${{ github.event.release.tag_name }}+ TAG=makeplane/plane-frontend:${{ github.event.release.tag_name }}+ if [ "${{ env.IS_PRERELEASE }}" != "true" ]; then+ TAG=${TAG},makeplane/plane-frontend:stable+ fielif [ "${{ env.TARGET_BRANCH }}" == "master" ]; thenTAG=makeplane/plane-frontend:latestelse@@ -142,10 +157,11 @@ jobs:branch_build_push_admin:if: ${{ needs.branch_build_setup.outputs.build_admin== 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}+ name: Build-Push Admin Docker Imageruns-on: ubuntu-20.04needs: [branch_build_setup]env:- ADMIN_TAG: makeplane/plane-admin:${{ needs.branch_build_setup.outputs.gh_branch_name }}+ ADMIN_TAG: makeplane/plane-admin:${{ needs.branch_build_setup.outputs.flat_branch_name }}TARGET_BRANCH: ${{ needs.branch_build_setup.outputs.gh_branch_name }}BUILDX_DRIVER: ${{ needs.branch_build_setup.outputs.gh_buildx_driver }}BUILDX_VERSION: ${{ needs.branch_build_setup.outputs.gh_buildx_version }}@@ -155,7 +171,10 @@ jobs:- name: Set Admin Docker Tagrun: |if [ "${{ github.event_name }}" == "release" ]; then- TAG=makeplane/plane-admin:stable,makeplane/plane-admin:${{ github.event.release.tag_name }}+ TAG=makeplane/plane-admin:${{ github.event.release.tag_name }}+ if [ "${{ env.IS_PRERELEASE }}" != "true" ]; then+ TAG=${TAG},makeplane/plane-admin:stable+ fielif [ "${{ env.TARGET_BRANCH }}" == "master" ]; thenTAG=makeplane/plane-admin:latestelse@@ -194,10 +213,11 @@ jobs:branch_build_push_space:if: ${{ needs.branch_build_setup.outputs.build_space == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}+ name: Build-Push Space Docker Imageruns-on: ubuntu-20.04needs: [branch_build_setup]env:- SPACE_TAG: makeplane/plane-space:${{ needs.branch_build_setup.outputs.gh_branch_name }}+ SPACE_TAG: makeplane/plane-space:${{ needs.branch_build_setup.outputs.flat_branch_name }}TARGET_BRANCH: ${{ needs.branch_build_setup.outputs.gh_branch_name }}BUILDX_DRIVER: ${{ needs.branch_build_setup.outputs.gh_buildx_driver }}BUILDX_VERSION: ${{ needs.branch_build_setup.outputs.gh_buildx_version }}@@ -207,7 +227,10 @@ jobs:- name: Set Space Docker Tagrun: |if [ "${{ github.event_name }}" == "release" ]; then- TAG=makeplane/plane-space:stable,makeplane/plane-space:${{ github.event.release.tag_name }}+ TAG=makeplane/plane-space:${{ github.event.release.tag_name }}+ if [ "${{ env.IS_PRERELEASE }}" != "true" ]; then+ TAG=${TAG},makeplane/plane-space:stable+ fielif [ "${{ env.TARGET_BRANCH }}" == "master" ]; thenTAG=makeplane/plane-space:latestelse@@ -246,10 +269,11 @@ jobs:branch_build_push_apiserver:if: ${{ needs.branch_build_setup.outputs.build_apiserver == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}+ name: Build-Push API Server Docker Imageruns-on: ubuntu-20.04needs: [branch_build_setup]env:- BACKEND_TAG: makeplane/plane-backend:${{ needs.branch_build_setup.outputs.gh_branch_name }}+ BACKEND_TAG: makeplane/plane-backend:${{ needs.branch_build_setup.outputs.flat_branch_name }}TARGET_BRANCH: ${{ needs.branch_build_setup.outputs.gh_branch_name }}BUILDX_DRIVER: ${{ needs.branch_build_setup.outputs.gh_buildx_driver }}BUILDX_VERSION: ${{ needs.branch_build_setup.outputs.gh_buildx_version }}@@ -259,7 +283,10 @@ jobs:- name: Set Backend Docker Tagrun: |if [ "${{ github.event_name }}" == "release" ]; then- TAG=makeplane/plane-backend:stable,makeplane/plane-backend:${{ github.event.release.tag_name }}+ TAG=makeplane/plane-backend:${{ github.event.release.tag_name }}+ if [ "${{ env.IS_PRERELEASE }}" != "true" ]; then+ TAG=${TAG},makeplane/plane-backend:stable+ fielif [ "${{ env.TARGET_BRANCH }}" == "master" ]; thenTAG=makeplane/plane-backend:latestelse@@ -298,10 +325,11 @@ jobs:branch_build_push_live:if: ${{ needs.branch_build_setup.outputs.build_live == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}+ name: Build-Push Live Collaboration Docker Imageruns-on: ubuntu-20.04needs: [branch_build_setup]env:- LIVE_TAG: makeplane/plane-live:${{ needs.branch_build_setup.outputs.gh_branch_name }}+ LIVE_TAG: makeplane/plane-live:${{ needs.branch_build_setup.outputs.flat_branch_name }}TARGET_BRANCH: ${{ needs.branch_build_setup.outputs.gh_branch_name }}BUILDX_DRIVER: ${{ needs.branch_build_setup.outputs.gh_buildx_driver }}BUILDX_VERSION: ${{ needs.branch_build_setup.outputs.gh_buildx_version }}@@ -311,7 +339,10 @@ jobs:- name: Set Live Docker Tagrun: |if [ "${{ github.event_name }}" == "release" ]; then- TAG=makeplane/plane-live:stable,makeplane/plane-live:${{ github.event.release.tag_name }}+ TAG=makeplane/plane-live:${{ github.event.release.tag_name }}+ if [ "${{ github.event.release.prerelease }}" != "true" ]; then+ TAG=${TAG},makeplane/plane-live:stable+ fielif [ "${{ env.TARGET_BRANCH }}" == "master" ]; thenTAG=makeplane/plane-live:latestelse@@ -350,10 +381,11 @@ jobs:branch_build_push_proxy:if: ${{ needs.branch_build_setup.outputs.build_proxy == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'release' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}+ name: Build-Push Proxy Docker Imageruns-on: ubuntu-20.04needs: [branch_build_setup]env:- PROXY_TAG: makeplane/plane-proxy:${{ needs.branch_build_setup.outputs.gh_branch_name }}+ PROXY_TAG: makeplane/plane-proxy:${{ needs.branch_build_setup.outputs.flat_branch_name }}TARGET_BRANCH: ${{ needs.branch_build_setup.outputs.gh_branch_name }}BUILDX_DRIVER: ${{ needs.branch_build_setup.outputs.gh_buildx_driver }}BUILDX_VERSION: ${{ needs.branch_build_setup.outputs.gh_buildx_version }}@@ -363,7 +395,10 @@ jobs:- name: Set Proxy Docker Tagrun: |if [ "${{ github.event_name }}" == "release" ]; then- TAG=makeplane/plane-proxy:stable,makeplane/plane-proxy:${{ github.event.release.tag_name }}+ TAG=makeplane/plane-proxy:${{ github.event.release.tag_name }}+ if [ "${{ env.IS_PRERELEASE }}" != "true" ]; then+ TAG=${TAG},makeplane/plane-proxy:stable+ fielif [ "${{ env.TARGET_BRANCH }}" == "master" ]; thenTAG=makeplane/plane-proxy:latestelse