SSL configuration in Dockerfile and drone.yml
Some checks reported errors
continuous-integration/drone/tag Build was killed
Some checks reported errors
continuous-integration/drone/tag Build was killed
This commit is contained in:
@@ -70,6 +70,8 @@ steps:
|
|||||||
from_secret: WS_PORT
|
from_secret: WS_PORT
|
||||||
WS_SKEY:
|
WS_SKEY:
|
||||||
from_secret: WS_SKEY
|
from_secret: WS_SKEY
|
||||||
|
WS_SSL:
|
||||||
|
from_secret: WS_SSL
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@@ -82,6 +84,7 @@ steps:
|
|||||||
--build-arg VITE_WS_HOST="$WS_HOST" \
|
--build-arg VITE_WS_HOST="$WS_HOST" \
|
||||||
--build-arg VITE_WS_PORT="$WS_PORT" \
|
--build-arg VITE_WS_PORT="$WS_PORT" \
|
||||||
--build-arg VITE_WS_SKEY="$WS_SKEY" \
|
--build-arg VITE_WS_SKEY="$WS_SKEY" \
|
||||||
|
--build-arg VITE_WS_SSL="$WS_SSL" \
|
||||||
-t lila-games/tic-tac-toe-ui:$IMAGE_TAG \
|
-t lila-games/tic-tac-toe-ui:$IMAGE_TAG \
|
||||||
-t lila-games/tic-tac-toe-ui:latest \
|
-t lila-games/tic-tac-toe-ui:latest \
|
||||||
/drone/src
|
/drone/src
|
||||||
|
|||||||
@@ -17,11 +17,12 @@ COPY . .
|
|||||||
ARG VITE_WS_HOST
|
ARG VITE_WS_HOST
|
||||||
ARG VITE_WS_PORT
|
ARG VITE_WS_PORT
|
||||||
ARG VITE_WS_SKEY
|
ARG VITE_WS_SKEY
|
||||||
|
ARG VITE_WS_SSL
|
||||||
|
|
||||||
# Export them as actual environment variables (Vite needs ENV)
|
# Export them as actual environment variables (Vite needs ENV)
|
||||||
ENV VITE_WS_HOST=${VITE_WS_HOST}
|
ENV VITE_WS_HOST=${VITE_WS_HOST}
|
||||||
ENV VITE_WS_PORT=${VITE_WS_PORT}
|
ENV VITE_WS_PORT=${VITE_WS_PORT}
|
||||||
ENV VITE_WS_SKEY=${VITE_WS_SKEY}
|
ENV VITE_WS_SSL=${VITE_WS_SSL}
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tictactoe-vite",
|
"name": "tictactoe-vite",
|
||||||
"version": "v0.2.2",
|
"version": "v0.2.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
Reference in New Issue
Block a user