mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
1e152c666c
* chore: moved app & space from apps to root * chore: modified workspace configuration * chore: modified dockerfiles for space and web * chore: modified icons for space * feat: updated files for new svg icons supported by next-images * chore: added /spaces base path for next * chore: added compose config for space * chore: updated husky configuration * chore: updated workflows for new configuration * chore: changed app name to web * fix: resolved build errors with web * chore: reset file tracing root for both projects * chore: added nginx config for deploy * fix: eslint and tsconfig settings for space app * husky setup fixes based on new dir * eslint fixes * prettier formatting --------- Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
112 lines
3.6 KiB
YAML
112 lines
3.6 KiB
YAML
name: Update Docker Images for Plane on Release
|
|
|
|
on:
|
|
release:
|
|
types: [released]
|
|
|
|
jobs:
|
|
build_push_backend:
|
|
name: Build and Push Api Server Docker Image
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3.3.0
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2.5.0
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Setup .npmrc for repository
|
|
run: |
|
|
echo -e "@tiptap-pro:registry=https://registry.tiptap.dev/\n//registry.tiptap.dev/:_authToken=${{ secrets.TIPTAP_TOKEN }}" > .npmrc
|
|
|
|
- name: Extract metadata (tags, labels) for Docker (Docker Hub) from Github Release
|
|
id: metaFrontend
|
|
uses: docker/metadata-action@v4.3.0
|
|
with:
|
|
images: ${{ secrets.DOCKERHUB_USERNAME }}/plane-frontend
|
|
tags: |
|
|
type=ref,event=tag
|
|
|
|
- name: Extract metadata (tags, labels) for Docker (Docker Hub) from Github Release
|
|
id: metaBackend
|
|
uses: docker/metadata-action@v4.3.0
|
|
with:
|
|
images: ${{ secrets.DOCKERHUB_USERNAME }}/plane-backend
|
|
tags: |
|
|
type=ref,event=tag
|
|
|
|
- name: Extract metadata (tags, labels) for Docker (Docker Hub) from Github Release
|
|
id: metaDeploy
|
|
uses: docker/metadata-action@v4.3.0
|
|
with:
|
|
images: ${{ secrets.DOCKERHUB_USERNAME }}/plane-deploy
|
|
tags: |
|
|
type=ref,event=tag
|
|
|
|
- name: Extract metadata (tags, labels) for Docker (Docker Hub) from Github Release
|
|
id: metaProxy
|
|
uses: docker/metadata-action@v4.3.0
|
|
with:
|
|
images: ${{ secrets.DOCKERHUB_USERNAME }}/plane-proxy
|
|
tags: |
|
|
type=ref,event=tag
|
|
|
|
- name: Build and Push Frontend to Docker Container Registry
|
|
uses: docker/build-push-action@v4.0.0
|
|
with:
|
|
context: .
|
|
file: ./web/Dockerfile.web
|
|
platforms: linux/amd64
|
|
tags: ${{ steps.metaFrontend.outputs.tags }}
|
|
push: true
|
|
env:
|
|
DOCKER_BUILDKIT: 1
|
|
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and Push Backend to Docker Hub
|
|
uses: docker/build-push-action@v4.0.0
|
|
with:
|
|
context: ./apiserver
|
|
file: ./apiserver/Dockerfile.api
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: ${{ steps.metaBackend.outputs.tags }}
|
|
env:
|
|
DOCKER_BUILDKIT: 1
|
|
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and Push Plane-Deploy to Docker Hub
|
|
uses: docker/build-push-action@v4.0.0
|
|
with:
|
|
context: .
|
|
file: ./space/Dockerfile.space
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: ${{ steps.metaDeploy.outputs.tags }}
|
|
env:
|
|
DOCKER_BUILDKIT: 1
|
|
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and Push Plane-Proxy to Docker Hub
|
|
uses: docker/build-push-action@v4.0.0
|
|
with:
|
|
context: ./nginx
|
|
file: ./nginx/Dockerfile
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: ${{ steps.metaProxy.outputs.tags }}
|
|
env:
|
|
DOCKER_BUILDKIT: 1
|
|
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
DOCKET_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
|