Skip to content

build(docker): update [email protected]

build(docker): update [email protected] #385

Workflow file for this run

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