Skip to content

ci: update actions version & platforms. #1

ci: update actions version & platforms.

ci: update actions version & platforms. #1

name: docker-build-test
env:
dockerhub_repository: "riccoxie/meilisearch-ui"
dockerhub_tag: "test"
on:
push:
branches:
- test
jobs:
dockerhub-build-push:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: ${{ matrix.platform }}
tags: ${{ env.dockerhub_repository }}:${{ env.dockerhub_tag }}