Skip to content

Commit

Permalink
Merge pull request #378 from Decatur-Robotics/gcp-test
Browse files Browse the repository at this point in the history
Gcp test
  • Loading branch information
renatodellosso authored Dec 17, 2024
2 parents 5b2ec2e + 05a0dcb commit 0932543
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Create certs directory
run: mkdir certs

- name: Build and export
uses: docker/build-push-action@v6
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/onpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
ci:
uses: ./.github/workflows/ci.yml

# cd:
# needs:
# - ci
# uses: ./.github/workflows/cd.yml
cd:
needs:
- ci
uses: ./.github/workflows/cd.yml
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ RUN npm run build

EXPOSE 443

CMD npm run start
# ENTRYPOINT [ "bash" ] # Uncomment to operate the terminal in the container
CMD ["/usr/local/bin/npm", "run", "start"]
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
"name": "sj3",
"version": "0.1.0",
"private": true,
"repository": "https://github.com/Decatur-Robotics/Gearbox",
"scripts": {
"dev": "cross-env NODE_ENV=development npx tsx index.ts",
"build": "next build",
"start": "cross-env NODE_ENV=production npx tsx index.ts",
"restart": "next build && cross-env NODE_ENV=production npx tsx index.ts",
"test": "jest",
"docker-build": "docker build -t gearbox .",
"docker-start": "docker run -i -t -p 443:443 gearbox",
"docker-prune": "docker container prune",
"lint": "eslint . --max-warnings=0",
"prettier-fix": "prettier --write ./**/*.{js,tsx,jsx,json,ts}",
"prettier-check": "prettier --check ./**/*.{js,tsx,jsx,json,ts}",
"test": "jest"
"prettier-check": "prettier --check ./**/*.{js,tsx,jsx,json,ts}"
},
"dependencies": {
"@next-auth/mongodb-adapter": "^1.1.3",
Expand Down

0 comments on commit 0932543

Please sign in to comment.