MeiliSearch/.github/workflows/publish-docker-tag.yml

40 lines
899 B
YAML
Raw Normal View History

---
on:
push:
tags:
- '*'
name: Publish tagged image to Docker Hub
jobs:
2021-11-11 15:57:06 +01:00
docker-tag:
2021-11-12 17:45:31 +01:00
runs-on: self-hosted
steps:
2021-11-11 15:57:06 +01:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
2021-11-11 19:42:30 +01:00
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
2021-11-11 15:57:06 +01:00
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
2021-11-11 19:42:30 +01:00
images: getmeili/meilisearch
2021-11-11 15:57:06 +01:00
flavor: latest=false
tags: type=ref,event=tag
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
2021-11-11 15:57:06 +01:00
push: true
2021-11-11 16:28:30 +01:00
platforms: linux/amd64,linux/arm64
2021-11-11 15:57:06 +01:00
tags: ${{ steps.meta.outputs.tags }}