Skip to content

fix: CI

fix: CI #75

Workflow file for this run

name: Build & Publish Docker image
on:
pull_request:
branches: [main]
paths:
- '**'
- '!example/**'
- '!*.md'
push:
branches: [main]
paths:
- '**'
- '!example/**'
- '!*.md'
release:
types:
- published
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and publish to Docker Hub
uses: docker/build-push-action@v2
timeout-minutes: 60
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: 18-${{ github.ref_name }}
file: 18.Dockerfile
- name: Build and publish to Docker Hub
uses: docker/build-push-action@v2
timeout-minutes: 60
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: 20-${{ github.ref_name }}
file: 20.Dockerfile