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