From 1aa89d5cdac21b326adabf7204da275c85d12c34 Mon Sep 17 00:00:00 2001 From: timerzz Date: Fri, 12 Apr 2024 14:17:08 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BF=AE=E6=94=B9build=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-push.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-push.yml b/.gitea/workflows/build-push.yml index fabb770..3bffd53 100644 --- a/.gitea/workflows/build-push.yml +++ b/.gitea/workflows/build-push.yml @@ -4,4 +4,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - run: docker build -t ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }}:latest . \ No newline at end of file + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ vars.DOCKER_REGISTRY }}/${{ vars.IMAGE_NAME }} + labels: latest \ No newline at end of file