This commit is contained in:
shuaiplus committed 2025-06-06 22:52:46 +08:00
commit 8825550239
2 files changed
+26 -2

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
name: Docker Build and Push
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'shuaiplus/nodecrypt'
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/shuaiplus/nodecrypt:latest
ghcr.io/shuaiplus/nodecrypt:${{ github.sha }}
-2
View File
@@ -18,8 +18,6 @@
### 方法三:Docker 一键部署(推荐自托管)
```bash
docker run -d --name nodecrypt -p 80:80 shua1/nodecrypt
or
docker run -d --name nodecrypt -p 80:80 ghcr.io/shuaiplus/nodecrypt
```