Compare commits
2 commits
main
...
renovate/v
Author | SHA1 | Date | |
---|---|---|---|
|
e26640d3f4 | ||
|
0d208b318d |
6 changed files with 10634 additions and 49 deletions
|
@ -5,7 +5,6 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- gold
|
- gold
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -13,35 +12,20 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy to OCI Registry
|
- name: Set repository name to lowercase
|
||||||
uses: https://git.smgames.club/SevenOfAces/PublishImage@main
|
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
with:
|
|
||||||
registry-url: 'git.smgames.club'
|
|
||||||
registry-token: ${{ secrets.DOCKER_TOKEN }}
|
|
||||||
architectures: 'amd64,arm64'
|
|
||||||
tags: 'latest'
|
|
||||||
name: 'auto'
|
|
||||||
dockerfile: './Dockerfile'
|
|
||||||
owner: 'SevenOfAces'
|
|
||||||
|
|
||||||
# - name: Set repository name to lowercase
|
- name: Set up Docker Buildx
|
||||||
# run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
# - name: Set up Docker
|
- name: Authenticate with registry
|
||||||
# uses: https://github.com/docker-practice/actions-setup-docker@master
|
run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
||||||
# timeout-minutes: 12
|
|
||||||
|
|
||||||
# - name: Set up Docker Buildx
|
- name: Build and push multi-architecture Docker image
|
||||||
# uses: docker/setup-buildx-action@v3
|
run: |
|
||||||
|
docker buildx create --use
|
||||||
# - name: Authenticate with registry
|
docker buildx build \
|
||||||
# run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
--platform linux/amd64,linux/arm64 \
|
||||||
|
--tag git.smgames.club/${{ env.REPO_NAME }}:latest \
|
||||||
# - name: Build and push multi-architecture Docker image
|
--push \
|
||||||
# run: |
|
.
|
||||||
# docker buildx create --use
|
|
||||||
# docker buildx build \
|
|
||||||
# --platform linux/amd64,linux/arm64 \
|
|
||||||
# --tag git.smgames.club/${{ env.REPO_NAME }}:latest \
|
|
||||||
# --push \
|
|
||||||
# .
|
|
||||||
|
|
|
@ -46,12 +46,6 @@ 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
|
||||||
|
|
||||||
|
@ -84,18 +78,11 @@ 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 (${{ matrix.browser }})
|
name: Run E2E tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install
|
needs: install
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -122,7 +109,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: https://github.com/cypress-io/github-action@v6
|
uses: 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 ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm i
|
RUN npm i
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
@ -16,7 +16,6 @@ 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
|
||||||
RUN chown -R 101:101 /usr/share/nginx/html /var/cache/nginx /var/run /etc/nginx
|
USER 1000
|
||||||
USER 101
|
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
10611
package-lock.json
generated
Executable file
10611
package-lock.json
generated
Executable file
File diff suppressed because it is too large
Load diff
|
@ -19,7 +19,11 @@
|
||||||
"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