forked from makeplane/plane
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Split the build of the frontend to use the github runner with…
… amd64 and self-hosted runner with arm64" This reverts commit 1ede9c4.
- Loading branch information
1 parent
1ede9c4
commit e541dbc
Showing
1 changed file
with
2 additions
and
55 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,68 +41,15 @@ jobs: | |
fi | ||
echo "TARGET_BRANCH=${{ env.TARGET_BRANCH }}" >> $GITHUB_OUTPUT | ||
branch_build_push_frontend_amd64: | ||
runs-on: ubuntu-20.04 | ||
needs: [branch_build_setup] | ||
env: | ||
FRONTEND_TAG: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:${{ needs.branch_build_setup.outputs.gh_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 }} | ||
BUILDX_PLATFORMS: "linux/amd64" | ||
BUILDX_ENDPOINT: ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }} | ||
steps: | ||
- name: Set Frontend Docker Tag | ||
run: | | ||
if [ "${{ github.event_name }}" == "release" ]; then | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:latest,${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:${{ github.event.release.tag_name }} | ||
elif [ "${{ env.TARGET_BRANCH }}" == "master" ]; then | ||
TAG=${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:stable | ||
else | ||
TAG=${{ env.FRONTEND_TAG }} | ||
fi | ||
echo "FRONTEND_TAG=${TAG}" >> $GITHUB_ENV | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ secrets.DOCKER_REGISTRY }} | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver: ${{ env.BUILDX_DRIVER }} | ||
version: ${{ env.BUILDX_VERSION }} | ||
endpoint: ${{ env.BUILDX_ENDPOINT }} | ||
|
||
- name: Check out the repo | ||
uses: actions/[email protected] | ||
|
||
- name: Build and Push Frontend to Docker Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./web/Dockerfile.web | ||
platforms: ${{ env.BUILDX_PLATFORMS }} | ||
tags: ${{ env.FRONTEND_TAG }} | ||
push: true | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
branch_build_push_frontend_arm64: | ||
branch_build_push_frontend: | ||
runs-on: self-hosted | ||
needs: [branch_build_setup] | ||
if: contains(needs.branch_build_setup.outputs.gh_buildx_platforms, 'linux/arm64') | ||
env: | ||
FRONTEND_TAG: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_REPO }}/plane-frontend:${{ needs.branch_build_setup.outputs.gh_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 }} | ||
BUILDX_PLATFORMS: "linux/arm64" | ||
BUILDX_PLATFORMS: ${{ needs.branch_build_setup.outputs.gh_buildx_platforms }} | ||
BUILDX_ENDPOINT: ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }} | ||
steps: | ||
- name: Set Frontend Docker Tag | ||
|