mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
fix(ci, http): commit_sha and commit_date in docker builds
chore(ci): cache dependencies in Docker build
This commit is contained in:
parent
b0956c09c1
commit
3d51db5929
3 changed files with 23 additions and 3 deletions
6
.github/workflows/publish_to_docker.yml
vendored
6
.github/workflows/publish_to_docker.yml
vendored
|
@ -11,10 +11,16 @@ jobs:
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue