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
|
2021-03-30 19:03:13 +02:00
|
|
|
- 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
|
2021-03-30 19:03:13 +02:00
|
|
|
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
|
2021-03-30 19:03:13 +02:00
|
|
|
buildargs: COMMIT_SHA,COMMIT_DATE
|