mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
3d51db5929
chore(ci): cache dependencies in Docker build
27 lines
714 B
YAML
27 lines
714 B
YAML
name: Publish to dockerhub
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*-alpha.*
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publishing to dockerhub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set COMMIT_DATE env variable
|
|
run: |
|
|
echo "COMMIT_DATE=$( git log --pretty=format:'%ad' -n1 --date=short )" >> $GITHUB_ENV
|
|
- name: Publish to Registry
|
|
uses: elgohr/Publish-Docker-Github-Action@master
|
|
env:
|
|
COMMIT_SHA: ${{ github.sha }}
|
|
with:
|
|
name: getmeili/meilisearch
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
tag_names: true
|
|
buildargs: COMMIT_SHA,COMMIT_DATE
|