mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added .env.development file to repo
This commit is contained in:
parent
9c16946b0d
commit
77b39fcc24
5 changed files with 33 additions and 10 deletions
35
.drone.yml
35
.drone.yml
|
@ -1,4 +1,31 @@
|
|||
kind: template
|
||||
load: registry.yaml
|
||||
data:
|
||||
dockerfile: docker/www/Dockerfile
|
||||
kind: pipeline
|
||||
name: build
|
||||
type: docker
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
environment:
|
||||
- REACT_APP_API_HOST: https://pig.vault48.org/
|
||||
- REACT_APP_REMOTE_CURRENT: https://pig.vault48.org/static/
|
||||
settings:
|
||||
dockerfile: docker/www/Dockerfile
|
||||
tag:
|
||||
- ${DRONE_BRANCH}
|
||||
custom_labels:
|
||||
- "commit=${DRONE_COMMIT_SHA}"
|
||||
username:
|
||||
from_secret: global_docker_login
|
||||
password:
|
||||
from_secret: global_docker_password
|
||||
registry:
|
||||
from_secret: global_docker_registry
|
||||
repo:
|
||||
from_secret: docker_repo
|
||||
|
|
2
.env
2
.env
|
@ -1,2 +0,0 @@
|
|||
REACT_APP_API_HOST = https://pig.vault48.org/
|
||||
REACT_APP_REMOTE_CURRENT = https://pig.vault48.org/static/
|
2
.env.development
Normal file
2
.env.development
Normal file
|
@ -0,0 +1,2 @@
|
|||
REACT_APP_API_HOST: https://pig.staging.vault48.org/
|
||||
REACT_APP_REMOTE_CURRENT: https://pig.staging.vault48.org/static/
|
|
@ -1,3 +0,0 @@
|
|||
REACT_APP_API_HOST = https://pig.staging.vault48.org/
|
||||
REACT_APP_REMOTE_CURRENT = https://pig.staging.vault48.org/static/
|
||||
EXPOSE = 4000
|
|
@ -9,4 +9,3 @@ COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
|||
RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=builder /build /usr/share/nginx/html
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue