feat(smart): add smart mode spider optional flag #397
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/[email protected] | |
- uses: docker/[email protected] | |
- 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 |