diff --git a/.github/workflows/push-batch-etl.yml b/.github/workflows/push-batch-etl.yml index a68ce5b74..41243e851 100644 --- a/.github/workflows/push-batch-etl.yml +++ b/.github/workflows/push-batch-etl.yml @@ -8,9 +8,9 @@ on: workflow_dispatch: push: branches: - - 'main' + - "main" paths: - - 'batch-etl/**' + - "batch-etl/**" jobs: build_server: @@ -23,10 +23,10 @@ jobs: platform: linux/amd64 tag: latest suffix: "" - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -60,7 +60,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - create-job-worker: name: Push Create Job image runs-on: ${{ matrix.runner }} @@ -70,10 +69,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -117,10 +116,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -153,4 +152,4 @@ jobs: file: ./batch-etl/Dockerfile.check-completion-worker push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/push-frontends.yml b/.github/workflows/push-frontends.yml index f182eaa81..97c228c16 100644 --- a/.github/workflows/push-frontends.yml +++ b/.github/workflows/push-frontends.yml @@ -27,10 +27,10 @@ jobs: - runner: blacksmith-2vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-2vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-2vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -77,10 +77,10 @@ jobs: - runner: blacksmith-2vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-2vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-2vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -127,10 +127,10 @@ jobs: - runner: blacksmith-2vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-2vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-2vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 diff --git a/.github/workflows/push-pdf2md-server.yml b/.github/workflows/push-pdf2md-server.yml index 2d91d91e5..dc8008096 100644 --- a/.github/workflows/push-pdf2md-server.yml +++ b/.github/workflows/push-pdf2md-server.yml @@ -21,8 +21,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -66,8 +66,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -111,8 +111,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: diff --git a/.github/workflows/push-server.yml b/.github/workflows/push-server.yml index de43f0ecb..d08f38a2b 100644 --- a/.github/workflows/push-server.yml +++ b/.github/workflows/push-server.yml @@ -8,9 +8,9 @@ on: workflow_dispatch: push: branches: - - 'main' + - "main" paths: - - 'server/**' + - "server/**" jobs: build_server: @@ -24,10 +24,10 @@ jobs: platform: linux/amd64 tag: latest suffix: "" - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -62,7 +62,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - ingest_worker: name: Push Ingest image runs-on: ${{ matrix.runner }} @@ -73,10 +72,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -121,10 +120,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -159,7 +158,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - csv_jsonl_worker: name: Push CSV JSONL worker Image runs-on: ${{ matrix.runner }} @@ -170,10 +168,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -218,10 +216,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -266,10 +264,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -314,10 +312,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -362,10 +360,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -410,10 +408,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -458,10 +456,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -506,10 +504,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -554,10 +552,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -602,10 +600,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -650,10 +648,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -698,10 +696,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -746,10 +744,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -794,10 +792,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -835,7 +833,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - pagefind-worker: name: Push Pagefind Index worker runs-on: ${{ matrix.runner }} @@ -846,10 +843,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -896,10 +893,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -946,10 +943,10 @@ jobs: - runner: blacksmith-8vcpu-ubuntu-2204 platform: linux/amd64 tag: latest - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - tag: latest-arm - suffix: -arm + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + # tag: latest-arm + # suffix: -arm steps: - name: Checkout the repo uses: actions/checkout@v4 @@ -985,4 +982,4 @@ jobs: file: ./server/Dockerfile.update-worker push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/workflow-release.yml b/.github/workflows/workflow-release.yml index 6ca3a55c9..0bea9ad13 100644 --- a/.github/workflows/workflow-release.yml +++ b/.github/workflows/workflow-release.yml @@ -218,8 +218,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -259,7 +259,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - ingest_worker: name: Push Ingest image runs-on: ${{ matrix.runner }} @@ -268,8 +267,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -314,8 +313,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -352,7 +351,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - file_worker: name: Push File Worker image runs-on: ${{ matrix.runner }} @@ -361,8 +359,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -407,8 +405,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -453,8 +451,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -499,8 +497,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -545,8 +543,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -591,8 +589,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -637,8 +635,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -683,8 +681,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -729,8 +727,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -775,8 +773,8 @@ jobs: runner: [blacksmith-8vcpu-ubuntu-2204] platform: [linux/amd64] exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 - runner: blacksmith-8vcpu-ubuntu-2204-arm platform: linux/amd64 steps: @@ -804,94 +802,93 @@ jobs: type=ref,event=tag crawl-cron-job: - name: Push Crawl Cron Job - runs-on: ${{ matrix.runner }} - strategy: - matrix: - runner: [blacksmith-8vcpu-ubuntu-2204] - platform: [linux/amd64] - exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - - runner: blacksmith-8vcpu-ubuntu-2204-arm - platform: linux/amd64 - steps: - - name: Checkout the repo - uses: actions/checkout@v4 - - - name: Setup buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - # list of Docker images to use as base name for tags - images: | - trieve/crawl-cron-job - tags: | - type=raw,latest - type=ref,event=tag - - - name: Build and push Docker image - uses: useblacksmith/build-push-action@v1.0.0-beta - with: - platforms: ${{ matrix.platform }} - context: server/ - file: ./server/Dockerfile.crawl-cron-job - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + name: Push Crawl Cron Job + runs-on: ${{ matrix.runner }} + strategy: + matrix: + runner: [blacksmith-8vcpu-ubuntu-2204] + platform: [linux/amd64] + exclude: + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + - runner: blacksmith-8vcpu-ubuntu-2204-arm + platform: linux/amd64 + steps: + - name: Checkout the repo + uses: actions/checkout@v4 + + - name: Setup buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + # list of Docker images to use as base name for tags + images: | + trieve/crawl-cron-job + tags: | + type=raw,latest + type=ref,event=tag + + - name: Build and push Docker image + uses: useblacksmith/build-push-action@v1.0.0-beta + with: + platforms: ${{ matrix.platform }} + context: server/ + file: ./server/Dockerfile.crawl-cron-job + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} dittofeed-sync-worker: - name: Push Dittofeed Sync Worker - runs-on: ${{ matrix.runner }} - strategy: - matrix: - runner: [blacksmith-8vcpu-ubuntu-2204] - platform: [linux/amd64] - exclude: - - runner: blacksmith-8vcpu-ubuntu-2204 - platform: linux/arm64 - - runner: blacksmith-8vcpu-ubuntu-2204-arm - platform: linux/amd64 - steps: - - name: Checkout the repo - uses: actions/checkout@v4 - - - name: Setup buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - # list of Docker images to use as base name for tags - images: | - trieve/dittofeed-sync-worker - tags: | - type=raw,latest - type=ref,event=tag - - - name: Build and push Docker image - uses: useblacksmith/build-push-action@v1.0.0-beta - with: - platforms: ${{ matrix.platform }} - context: server/ - file: ./server/Dockerfile.dittofeed-sync-worker - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + name: Push Dittofeed Sync Worker + runs-on: ${{ matrix.runner }} + strategy: + matrix: + runner: [blacksmith-8vcpu-ubuntu-2204] + platform: [linux/amd64] + exclude: + # - runner: blacksmith-8vcpu-ubuntu-2204 + # platform: linux/arm64 + - runner: blacksmith-8vcpu-ubuntu-2204-arm + platform: linux/amd64 + steps: + - name: Checkout the repo + uses: actions/checkout@v4 + + - name: Setup buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + # list of Docker images to use as base name for tags + images: | + trieve/dittofeed-sync-worker + tags: | + type=raw,latest + type=ref,event=tag + + - name: Build and push Docker image + uses: useblacksmith/build-push-action@v1.0.0-beta + with: + platforms: ${{ matrix.platform }} + context: server/ + file: ./server/Dockerfile.dittofeed-sync-worker + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}