Compare commits
14 commits
renovate/v
...
main
Author | SHA1 | Date | |
---|---|---|---|
5a34bf38ac | |||
739dfaa531 | |||
47d178472f | |||
643db2b81b | |||
defaad6983 | |||
5ffae82adb | |||
c0bb7c91b8 | |||
836cf65a7a | |||
7251927e93 | |||
fb80b6f92e | |||
feb5855c4d | |||
256a5a684a | |||
38cdcd53d9 | |||
71c2584485 |
6 changed files with 49 additions and 10634 deletions
|
@ -5,6 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- gold
|
- gold
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -12,20 +13,35 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set repository name to lowercase
|
- name: Deploy to OCI Registry
|
||||||
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
uses: https://git.smgames.club/SevenOfAces/PublishImage@main
|
||||||
|
with:
|
||||||
|
registry-url: 'git.smgames.club'
|
||||||
|
registry-token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
architectures: 'amd64,arm64'
|
||||||
|
tags: 'latest'
|
||||||
|
name: 'auto'
|
||||||
|
dockerfile: './Dockerfile'
|
||||||
|
owner: 'SevenOfAces'
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
# - name: Set repository name to lowercase
|
||||||
uses: docker/setup-buildx-action@v3
|
# run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Authenticate with registry
|
# - name: Set up Docker
|
||||||
run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
# uses: https://github.com/docker-practice/actions-setup-docker@master
|
||||||
|
# timeout-minutes: 12
|
||||||
|
|
||||||
- name: Build and push multi-architecture Docker image
|
# - name: Set up Docker Buildx
|
||||||
run: |
|
# uses: docker/setup-buildx-action@v3
|
||||||
docker buildx create --use
|
|
||||||
docker buildx build \
|
# - name: Authenticate with registry
|
||||||
--platform linux/amd64,linux/arm64 \
|
# run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
||||||
--tag git.smgames.club/${{ env.REPO_NAME }}:latest \
|
|
||||||
--push \
|
# - name: Build and push multi-architecture Docker image
|
||||||
.
|
# run: |
|
||||||
|
# docker buildx create --use
|
||||||
|
# docker buildx build \
|
||||||
|
# --platform linux/amd64,linux/arm64 \
|
||||||
|
# --tag git.smgames.club/${{ env.REPO_NAME }}:latest \
|
||||||
|
# --push \
|
||||||
|
# .
|
||||||
|
|
|
@ -46,6 +46,12 @@ jobs:
|
||||||
path: ~/.cache/Cypress
|
path: ~/.cache/Cypress
|
||||||
key: cypress-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
|
key: cypress-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
|
||||||
|
|
||||||
|
- name: Cache Node modules
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: node-modules-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
|
||||||
|
|
||||||
- name: Install Cypress
|
- name: Install Cypress
|
||||||
run: npx cypress install
|
run: npx cypress install
|
||||||
|
|
||||||
|
@ -78,11 +84,18 @@ jobs:
|
||||||
name: build
|
name: build
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
|
- name: Restore Node modules cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
name: node-modules
|
||||||
|
key: node-modules-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
|
||||||
|
path: node_modules
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm run test:unit
|
run: npm run test:unit
|
||||||
|
|
||||||
cypress-tests:
|
cypress-tests:
|
||||||
name: Run E2E tests
|
name: Run E2E tests (${{ matrix.browser }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install
|
needs: install
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -109,7 +122,7 @@ jobs:
|
||||||
run: sudo apt-get update && sudo apt-get install -y ${{ env.APT_PACKAGES }}
|
run: sudo apt-get update && sudo apt-get install -y ${{ env.APT_PACKAGES }}
|
||||||
|
|
||||||
- name: Cypress run (${{ matrix.browser }})
|
- name: Cypress run (${{ matrix.browser }})
|
||||||
uses: cypress-io/github-action@v6
|
uses: https://github.com/cypress-io/github-action@v6
|
||||||
with:
|
with:
|
||||||
start: npm start
|
start: npm start
|
||||||
browser: ${{ matrix.browser }}
|
browser: ${{ matrix.browser }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# build stage
|
# build stage
|
||||||
FROM node:lts-alpine AS build-stage
|
FROM node:lts-alpine AS build-stage
|
||||||
WORKDIR /app
|
WORKDIR ./app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json ./
|
||||||
RUN npm i
|
RUN npm i
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
@ -16,6 +16,7 @@ COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
# Use a non-root user for security
|
# Use a non-root user for security
|
||||||
USER 1000
|
RUN chown -R 101:101 /usr/share/nginx/html /var/cache/nginx /var/run /etc/nginx
|
||||||
|
USER 101
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
BIN
bun.lockb
Executable file
BIN
bun.lockb
Executable file
Binary file not shown.
10611
package-lock.json
generated
10611
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -19,11 +19,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tsparticles/slim": "^3.5.0",
|
"@tsparticles/slim": "^3.5.0",
|
||||||
"@tsparticles/vue3": "^3.0.1",
|
"@tsparticles/vue3": "^3.0.1",
|
||||||
"axios": "^1.7.7",
|
|
||||||
"bcrypt": "^5.1.1",
|
|
||||||
"express": "^4.21.1",
|
"express": "^4.21.1",
|
||||||
"jsonwebtoken": "^9.0.2",
|
|
||||||
"pg": "^8.13.1",
|
|
||||||
"pinia": "^2.2.6",
|
"pinia": "^2.2.6",
|
||||||
"vue": "^3.5.12",
|
"vue": "^3.5.12",
|
||||||
"vue-router": "^4.4.5"
|
"vue-router": "^4.4.5"
|
||||||
|
|
Loading…
Add table
Reference in a new issue