mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
c7f1090914
* removing dependencies from .env * dev: Passing the arguments from docker compose to DockerWeb in nextjs to define base environment variables * dev: removed env from docker-compose and taking the env from shell * dev: Updated docker file and used console in signin to test the env from docker * dev: Docker setting env variables via shell * removed env variables and args * Update Dockerfile.web * Update Dockerfile.web * Update signin.tsx * . * . * dev: Added BASE_URL from docker * dev: Updated docker config * dev: scripts for replacing variable during runtime * dev: entrypoint script * dev: update replace env script and update docker entrypoint command for frontend * dev: update replace env script to not update process.env * dev: update docker file to add missing variables as well * fix: updated docker compose yml and web * dev: create start script to run docker and update script for replacing variables * dev: update setup script and env example script to create variables in the root of the project * . * dev: update docker compose hub * dev: update docker compose hub command * dev: update docker compose yml and env example * dev: update docker compose hub * dev: single docker --------- Co-authored-by: Narayana <narayana.vadapalli1996@gmail.com> Co-authored-by: gurusainath <gurusainath007@gmail.com>
78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
name: Build and Push Frontend Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'develop'
|
|
- 'master'
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build_push_frontend:
|
|
name: Build Frontend Docker Image
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3.3.0
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2.1.0
|
|
with:
|
|
platforms: linux/arm64,linux/amd64
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2.5.0
|
|
|
|
- name: Login to Github Container Registry
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
registry: "ghcr.io"
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
registry: "registry.hub.docker.com"
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
- name: Extract metadata (tags, labels) for Docker (Docker Hub)
|
|
id: ghmeta
|
|
uses: docker/metadata-action@v4.3.0
|
|
with:
|
|
images: makeplane/plane-frontend
|
|
|
|
- name: Extract metadata (tags, labels) for Docker (Github)
|
|
id: meta
|
|
uses: docker/metadata-action@v4.3.0
|
|
with:
|
|
images: ghcr.io/${{ github.repository }}-frontend
|
|
|
|
- name: Build and Push to GitHub Container Registry
|
|
uses: docker/build-push-action@v4.0.0
|
|
with:
|
|
context: .
|
|
file: ./apps/app/Dockerfile.web
|
|
platforms: linux/arm64,linux/amd64
|
|
push: true
|
|
cache-from: type=gha
|
|
cache-to: type=gha
|
|
tags: ${{ steps.ghmeta.outputs.tags }}
|
|
labels: ${{ steps.ghmeta.outputs.labels }}
|
|
|
|
- name: Build and Push to Docker Container Registry
|
|
uses: docker/build-push-action@v4.0.0
|
|
with:
|
|
context: .
|
|
file: ./apps/app/Dockerfile.web
|
|
platforms: linux/arm64,linux/amd64
|
|
push: true
|
|
cache-from: type=gha
|
|
cache-to: type=gha
|
|
tags: ${{ steps.dkrmeta.outputs.tags }}
|
|
labels: ${{ steps.dkrmeta.outputs.labels }}
|
|
|