-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from fastsurvey/0.6.1
0.6.1
- Loading branch information
Showing
24 changed files
with
50 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
FROM node:12 | ||
|
||
COPY package.json package.json | ||
COPY yarn.lock yarn.lock | ||
|
||
FROM node:12 as build | ||
WORKDIR /app | ||
COPY package.json yarn.lock server.js ./ | ||
RUN yarn install --production=true | ||
|
||
COPY server.js server.js | ||
COPY dist dist | ||
|
||
FROM gcr.io/distroless/nodejs | ||
COPY --from=build /app / | ||
EXPOSE 8080 | ||
CMD [ "node", "server.js" ] | ||
CMD ["server.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
yarn build | ||
docker build -t gcr.io/fastsurvey-infrastructure/frontend-dev . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#!/bin/bash | ||
|
||
export VITE_COMMIT_SHA="$(git rev-parse --short --verify HEAD)" | ||
export VITE_ENV="development" | ||
yarn build | ||
|
||
docker build --platform linux/amd64 -t gcr.io/fastsurvey-infrastructure/frontend-dev . | ||
docker push gcr.io/fastsurvey-infrastructure/frontend-dev:latest | ||
|
||
VITE_COMMIT_SHA="$(git rev-parse --short --verify HEAD)" | ||
gcloud run deploy frontend-dev \ | ||
--image=gcr.io/fastsurvey-infrastructure/frontend-dev:latest \ | ||
--platform managed --tag "commit-$VITE_COMMIT_SHA" | ||
--platform managed --tag "commit-$VITE_COMMIT_SHA" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/bin/bash | ||
|
||
export VITE_COMMIT_SHA="$(git rev-parse --short --verify HEAD)" | ||
yarn build | ||
|
||
docker build --platform linux/amd64 -t gcr.io/fastsurvey-infrastructure/frontend . | ||
docker push gcr.io/fastsurvey-infrastructure/frontend:latest | ||
|
||
VITE_COMMIT_SHA="$(git rev-parse --short --verify HEAD)" | ||
gcloud run deploy frontend \ | ||
--image=gcr.io/fastsurvey-infrastructure/frontend:latest \ | ||
--platform managed --no-traffic --tag "commit-$VITE_COMMIT_SHA" | ||
--platform managed --no-traffic --tag "commit-$VITE_COMMIT_SHA" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker run -d -p 8080:8080 gcr.io/fastsurvey-infrastructure/frontend-dev:latest |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters