Skip to content

Commit

Permalink
chore: change docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
HADB committed Oct 23, 2024
1 parent 5e299d8 commit a91c182
Show file tree
Hide file tree
Showing 6 changed files with 7,736 additions and 5,444 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/deploy-aliyun.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-and-push-image:
name: Build & push docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
echo "${{ secrets.DOCKER_REGISTRY_PASSWORD }}" | docker login ${{ secrets.DOCKER_REGISTRY }} -u ${{ secrets.DOCKER_REGISTRY_USER }} --password-stdin
docker build -t ${{ secrets.DOCKER_REGISTRY_IMAGE_NAME }} .
docker push ${{ secrets.DOCKER_REGISTRY_IMAGE_NAME }}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@
"scss"
],
// Disable prettier
"prettier.enable": false
"prettier.enable": false,
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": [".github/workflows/*.{yml,yaml}"]
}
}
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ COPY . /app

RUN pnpm build

ENV HOST=0.0.0.0
ENV PORT=8888

EXPOSE 8888
ENV APP_ENV=prd

ENTRYPOINT ["node", ".output/server/index.mjs"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "yf-tools-web",
"version": "2.0.0",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"dev": "nuxt dev -o",
"build": "nuxt build",
Expand Down
Loading

0 comments on commit a91c182

Please sign in to comment.