diff --git a/.drone.yml b/.drone.yml index 0a053472..0060ee1c 100644 --- a/.drone.yml +++ b/.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 diff --git a/.env b/.env deleted file mode 100644 index 7cbd9050..00000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -REACT_APP_API_HOST = https://pig.vault48.org/ -REACT_APP_REMOTE_CURRENT = https://pig.vault48.org/static/ diff --git a/.env.development b/.env.development new file mode 100644 index 00000000..f0b95934 --- /dev/null +++ b/.env.development @@ -0,0 +1,2 @@ +REACT_APP_API_HOST: https://pig.staging.vault48.org/ +REACT_APP_REMOTE_CURRENT: https://pig.staging.vault48.org/static/ diff --git a/.env_example b/.env_example deleted file mode 100644 index 06034750..00000000 --- a/.env_example +++ /dev/null @@ -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 diff --git a/docker/www/Dockerfile b/docker/www/Dockerfile index e920f159..b9583777 100644 --- a/docker/www/Dockerfile +++ b/docker/www/Dockerfile @@ -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;"] -