MeiliSearch/.github/workflows/publish_to_docker.yml

27 lines
714 B
YAML
Raw Normal View History

2021-03-01 14:39:57 +01:00
name: Publish to dockerhub
on:
push:
tags:
- v*-alpha.*
jobs:
publish:
name: Publishing to dockerhub
runs-on: ubuntu-latest
steps:
2021-03-02 11:38:39 +01:00
- uses: actions/checkout@v1
- name: Set COMMIT_DATE env variable
run: |
echo "COMMIT_DATE=$( git log --pretty=format:'%ad' -n1 --date=short )" >> $GITHUB_ENV
2021-03-01 14:39:57 +01:00
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
env:
COMMIT_SHA: ${{ github.sha }}
2021-03-01 14:39:57 +01:00
with:
name: getmeili/meilisearch
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_names: true
buildargs: COMMIT_SHA,COMMIT_DATE