2019-11-21 11:18:54 +01:00
|
|
|
---
|
|
|
|
on:
|
2020-05-05 23:33:39 +02:00
|
|
|
release:
|
|
|
|
types: [published]
|
2019-11-21 11:18:54 +01:00
|
|
|
|
|
|
|
name: Publish latest image to Docker Hub
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-05-05 23:33:39 +02:00
|
|
|
- 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
|
2019-11-21 11:18:54 +01:00
|
|
|
- name: Publish to Registry
|
2020-05-05 23:33:39 +02:00
|
|
|
if: steps.release.outputs.is_latest == 'true'
|
2019-11-21 11:18:54 +01:00
|
|
|
uses: elgohr/Publish-Docker-Github-Action@master
|
|
|
|
with:
|
|
|
|
name: getmeili/meilisearch
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|