Skip to content

Commit

Permalink
chore(repo): clean dockerfile, docker-compose + remove useless files
Browse files Browse the repository at this point in the history
  • Loading branch information
matheoleger committed Sep 9, 2024
1 parent abd28e2 commit b6d1b63
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 315 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/create-release.yaml

This file was deleted.

199 changes: 0 additions & 199 deletions .github/workflows/docker-build-push-dockerhub.yml.old

This file was deleted.

15 changes: 4 additions & 11 deletions .github/workflows/docker-build-push-ghcr.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
name: Build and push image to GitHub Container Registry

on:
pull_request
on: pull_request

# on:
# push:
# branches:
# - "main"
# workflow_run:
# workflows: ["Update Calendso"]
# branches: [main]
# types:
# - completed

jobs:
build:
Expand Down Expand Up @@ -66,16 +60,16 @@ jobs:
with:
context: ./
file: ./Dockerfile
load: true # Load the image into the Docker daemon
push: false # Do not push the image at this stage
load: true # Load the image into the Docker daemon
push: false # Do not push the image at this stage
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NEXT_PUBLIC_WEBAPP_URL=${{ secrets.NEXT_PUBLIC_WEBAPP_URL }}
NEXT_PUBLIC_API_V2_URL=${{ secrets.NEXT_PUBLIC_API_V2_URL }}
NEXT_PUBLIC_LICENSE_CONSENT=${{ secrets.NEXT_PUBLIC_LICENSE_CONSENT }}
- name: Test runtime
run: |
tags="${{ steps.meta.outputs.tags }}"
Expand All @@ -97,7 +91,6 @@ jobs:
server_pid=$!
echo "Waiting for the server to start..."
sleep 120
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/scarf-data-export.yml.old

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/update-submodules.yml.old

This file was deleted.

5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ RUN yarn prisma generate
RUN yarn --cwd packages/embeds/embed-core workspace @calcom/embed-core run build
RUN yarn --cwd apps/web workspace @calcom/web run build

# RUN yarn plugin import workspace-tools && \
# yarn workspaces focus --all --production
RUN rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache

FROM node:18 as builder-two
Expand Down Expand Up @@ -73,9 +71,6 @@ ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
ENV NODE_ENV production
EXPOSE 3000

# HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
# CMD wget --spider http://localhost:3000 || exit 1

HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
CMD wget --spider $NEXT_PUBLIC_WEBAPP_URL || exit 1

Expand Down
Binary file removed bin/act
Binary file not shown.

0 comments on commit b6d1b63

Please sign in to comment.