From 427057b42d97349f851d90249fea097ea4e73e02 Mon Sep 17 00:00:00 2001 From: nsnail Date: Mon, 29 Apr 2024 18:51:55 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20docker=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=20(#114)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [skip ci] --- .github/workflows/nightly-build.yml | 4 ++-- .github/workflows/release.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 9b34c2ce..db69a298 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -39,9 +39,9 @@ jobs: restore-keys: ${{ runner.os }}-nuget - working-directory: ./src/backend/NetAdmin.AdmServer.Host run: dotnet publish NetAdmin.AdmServer.Host.csproj -c Release - - run: docker build -t nsnail/netadmin . + - run: docker build -t nsnail/netadmin:nightly . - uses: docker/login-action@v3 with: username: "nsnail" password: "${{secrets.DOCKER_PASSWORD}}" - - run: docker push nsnail/netadmin \ No newline at end of file + - run: docker push nsnail/netadmin:nightly \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb66f7b3..d59090f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,9 +49,10 @@ jobs: prerelease: false - id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - - run: docker build -t nsnail/netadmin:${{steps.get_version.outputs.VERSION}} . + - run: docker build -t nsnail/netadmin -t nsnail/netadmin:${{steps.get_version.outputs.VERSION}} . - uses: docker/login-action@v3 with: username: "nsnail" password: "${{secrets.DOCKER_PASSWORD}}" + - run: docker push nsnail/netadmin - run: docker push nsnail/netadmin:${{steps.get_version.outputs.VERSION}} \ No newline at end of file