mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 06:30:05 +01:00
23 lines
624 B
YAML
23 lines
624 B
YAML
---
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
name: Publish latest image to Docker Hub
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Check if current release is latest
|
|
run: echo "##[set-output name=is_latest;]$(sh .github/is-latest-release.sh)"
|
|
id: release
|
|
- name: Publish to Registry
|
|
if: steps.release.outputs.is_latest == 'true'
|
|
uses: elgohr/Publish-Docker-Github-Action@master
|
|
with:
|
|
name: getmeili/meilisearch
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|