This repository has been archived by the owner on Jan 27, 2025. It is now read-only.
chore(deps): update spider@1.86.14 cold fusion support #395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy to DockerHub | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
BUILDX_PLATFORMS: linux/amd64,linux/arm64 | |
DOCKER_BUILDKIT: 1 | |
IMAGE_NAME: a11ywatch/crawler | |
jobs: | |
build: | |
runs-on: buildjet-32vcpu-ubuntu-2204 | |
steps: | |
- uses: docker/setup-qemu-action@v2.2.0 | |
- uses: docker/setup-buildx-action@v2.6.0 | |
- uses: actions/checkout@v3 | |
- name: login to docker hub | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
- name: Build and Push Latest (Alpine) | |
run: docker buildx build --platform $BUILDX_PLATFORMS -t $IMAGE_NAME:latest -t $IMAGE_NAME:alpine --push . -f docker/Dockerfile | |
- name: Build and Push (Debian) | |
run: docker buildx build --platform $BUILDX_PLATFORMS -t $IMAGE_NAME:debian --push . -f docker/Dockerfile.debian | |
- name: Build and Push (Ubuntu) | |
run: docker buildx build --platform $BUILDX_PLATFORMS -t $IMAGE_NAME:ubuntu --push . -f docker/Dockerfile.ubuntu |