-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/add-lastPasswordChangeAt-to-users
- Loading branch information
Showing
49 changed files
with
1,829 additions
and
552 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
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 |
---|---|---|
|
@@ -30,13 +30,6 @@ jobs: | |
file: ./Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/drive-server:${{ github.sha }} | ||
- name: Build and push to desktop-server | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/desktop-server:${{ github.sha }} | ||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
@@ -53,18 +46,5 @@ jobs: | |
uses: steebchen/[email protected] | ||
with: | ||
config: ${{ secrets.KUBE_CONFIG_DATA }} | ||
version: v1.20.2 # specify kubectl binary version explicitly | ||
version: v1.25.9 # specify kubectl binary version explicitly | ||
command: rollout status deployment/drive-server | ||
|
||
- uses: actions/checkout@master | ||
- name: Update desktop-server image | ||
uses: steebchen/[email protected] | ||
with: | ||
config: ${{ secrets.KUBE_CONFIG_DATA }} | ||
command: set image --record deployment/desktop-server desktop-server=${{ secrets.DOCKERHUB_USERNAME }}/desktop-server:${{ github.sha }} | ||
- name: Verify desktop-server deployment | ||
uses: steebchen/[email protected] | ||
with: | ||
config: ${{ secrets.KUBE_CONFIG_DATA }} | ||
version: v1.20.2 | ||
command: rollout status deployment/desktop-server |
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,20 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
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,18 +1,18 @@ | ||
FROM mhart/alpine-node:14 | ||
FROM node:14 | ||
LABEL author="internxt" | ||
|
||
WORKDIR /drive-server | ||
|
||
# Add useful packages | ||
RUN apk add git curl | ||
# RUN apk add git curl | ||
|
||
COPY . . | ||
|
||
# Install deps | ||
RUN yarn && yarn build && yarn --production && yarn cache clean | ||
|
||
# Create prometheus directories | ||
RUN mkdir -p /mnt/prometheusvol{1,2} | ||
# RUN mkdir -p /mnt/prometheusvol{1,2} | ||
|
||
# Start server | ||
CMD node /drive-server/build/app.js | ||
CMD node /drive-server/build/app.js |
Oops, something went wrong.