From 52943418d188e7b246ccc9df966f31300fb91cda Mon Sep 17 00:00:00 2001 From: chinlinlee Date: Mon, 9 Oct 2023 22:02:39 +0800 Subject: [PATCH] build(ci): only build docker for release branch --- .github/workflows/autobuild-docker.yml | 56 -------------------------- 1 file changed, 56 deletions(-) delete mode 100644 .github/workflows/autobuild-docker.yml diff --git a/.github/workflows/autobuild-docker.yml b/.github/workflows/autobuild-docker.yml deleted file mode 100644 index d2a6135a..00000000 --- a/.github/workflows/autobuild-docker.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: burni-build-docker -on: - push: - branches: - - "main" - tags: - - "*" -jobs: - publish_docker_image: - runs-on: ubuntu-20.04 - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: '14' - - - name: burni Generate Source Code - run: | - npm install --only=production - node ./config/generate-config-allResources.js - cp ./.env.template ./.env - npm run build - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v3 - with: - images: a5566qq123/burni - tags: | - type=semver,pattern={{raw}} - type=ref,event=branch - type=raw,value=latest - - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: ./ - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }}