From 8833eaf0eed6b2b8066c67aed9cfd12db07a7bcd Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 12 Dec 2022 22:25:46 +0800 Subject: [PATCH] chore(ci): update ci --- .../workflows/manual-build-pr-docker-image.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/manual-build-pr-docker-image.yml b/.github/workflows/manual-build-pr-docker-image.yml index a4d7cc549..33aa34ee4 100644 --- a/.github/workflows/manual-build-pr-docker-image.yml +++ b/.github/workflows/manual-build-pr-docker-image.yml @@ -30,24 +30,13 @@ jobs: uses: docker/setup-buildx-action@v2 with: driver-opts: network=host - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: | - nocobase/nocobase - tags: | - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - name: Login to Docker Hub uses: docker/login-action@v2 with: registry: ${{ secrets.ALI_DOCKER_REGISTRY }} username: ${{ secrets.ALI_DOCKER_USERNAME }} password: ${{ secrets.ALI_DOCKER_PASSWORD }} - - name: Build and push + - name: Build and push - pr-${{ inputs.pr_number }} uses: docker/build-push-action@v3 with: context: . @@ -56,4 +45,4 @@ jobs: VERDACCIO_URL=http://localhost:4873/ COMMIT_HASH=${GITHUB_SHA} push: true - tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/${{ steps.meta.outputs.tags }} + tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/nocobase/nocobase:pr-${{ inputs.pr_number }}