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

23 lines
622 B
YAML
Raw Normal View History

---
on:
release:
2020-07-21 14:39:12 +02:00
types: [released]
name: Publish latest image to Docker Hub
jobs:
build:
2021-03-25 10:34:42 +01:00
runs-on: ubuntu-18.04
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 }}