Skip to content

Commit

Permalink
Merge pull request #6 from LCOGT/deploy
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
cmccully authored Sep 17, 2024
2 parents b72a2de + da31b0c commit 674368d
Show file tree
Hide file tree
Showing 13 changed files with 979 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Continuous Deployment"
on:
push:
branches:
- main
release:
types:
- published

jobs:
cd:
uses: LCOGT/reusable-workflows/.github/workflows/continuous-deployment.yaml@main
secrets: inherit
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,8 @@ cython_debug/
#.idea/

dump*
.devenv
.pre-commit-config.yaml

local-kubeconfig

8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ COPY ./pyproject.toml ./dependencies.lock ./

RUN pip install --no-cache -r dependencies.lock

RUN apt-get -y update && apt-get -y install git gcc && \
pip install --no-cache-dir "banzai_floyds@git+https://github.com/lcogt/banzai-floyds@output-dataproduct-frameid" && \
apt-get -y remove gcc && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*

COPY . .

RUN pip install --no-cache .
RUN pip install --no-cache-dir .

WORKDIR /banzai-floyds-ui/banzai_floyds_ui

Expand Down
2 changes: 1 addition & 1 deletion banzai_floyds_ui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']


# Application definition
Expand Down
Loading

0 comments on commit 674368d

Please sign in to comment.