mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-29 16:45:30 +08:00
Add ARM image for Docker to CI
This commit is contained in:
parent
15cb4dafa9
commit
5fd9616b5f
31
.github/workflows/publish-docker-latest.yml
vendored
31
.github/workflows/publish-docker-latest.yml
vendored
@ -6,17 +6,24 @@ on:
|
|||||||
name: Publish latest image to Docker Hub
|
name: Publish latest image to Docker Hub
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker-latest:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Set up QEMU
|
||||||
- name: Check if current release is latest
|
uses: docker/setup-qemu-action@v1
|
||||||
run: echo "##[set-output name=is_latest;]$(sh .github/is-latest-release.sh)"
|
|
||||||
id: release
|
- name: Set up Docker Buildx
|
||||||
- name: Publish to Registry
|
uses: docker/setup-buildx-action@v1
|
||||||
if: steps.release.outputs.is_latest == 'true'
|
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
name: getmeili/meilisearch
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
- name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: getmeili/meilisearch:latest
|
||||||
|
38
.github/workflows/publish-docker-tag.yml
vendored
38
.github/workflows/publish-docker-tag.yml
vendored
@ -7,16 +7,32 @@ on:
|
|||||||
name: Publish tagged image to Docker Hub
|
name: Publish tagged image to Docker Hub
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker-tag:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Set up QEMU
|
||||||
- name: Publish to Registry
|
uses: docker/setup-qemu-action@v1
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
|
||||||
env:
|
- name: Set up Docker Buildx
|
||||||
COMMIT_SHA: ${{ github.sha }}
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v3
|
||||||
with:
|
with:
|
||||||
name: getmeili/meilisearch
|
images: name/app
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
flavor: latest=false
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
tags: type=ref,event=tag
|
||||||
tag_names: true
|
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
Loading…
Reference in New Issue
Block a user