1
0
Fork 0
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:
Fedor Katurov 2021-09-30 12:43:50 +07:00
parent 9c16946b0d
commit 77b39fcc24
5 changed files with 33 additions and 10 deletions

View file

@ -1,4 +1,31 @@
kind: template kind: pipeline
load: registry.yaml name: build
data: type: docker
dockerfile: docker/www/Dockerfile
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
View file

@ -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
View file

@ -0,0 +1,2 @@
REACT_APP_API_HOST: https://pig.staging.vault48.org/
REACT_APP_REMOTE_CURRENT: https://pig.staging.vault48.org/static/

View file

@ -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

View file

@ -9,4 +9,3 @@ COPY docker/www/nginx.conf /etc/nginx/nginx.conf
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /build /usr/share/nginx/html COPY --from=builder /build /usr/share/nginx/html
ENTRYPOINT ["nginx", "-g", "daemon off;"] ENTRYPOINT ["nginx", "-g", "daemon off;"]