mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
Merge #1658
1658: Remove COMMIT_SHA and COMMIT_DATE build arg from the Docker CIs r=irevoire a=curquiza Since `@irevoire` add the `.git` folder in the Dockerfile, no need to compute `COMMIT_SHA` and `COMMIT_DATE` in the CI. Can you confirm `@irevoire?` Also, update some CIs using `checkout@v1` to `checkout@v2` Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
This commit is contained in:
commit
0d01c0e935
4
.github/workflows/publish-binaries.yml
vendored
4
.github/workflows/publish-binaries.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
- uses: hecrj/setup-rust-action@master
|
- uses: hecrj/setup-rust-action@master
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
rust-version: stable
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release --locked
|
run: cargo build --release --locked
|
||||||
- name: Upload binaries to release
|
- name: Upload binaries to release
|
||||||
@ -41,7 +41,7 @@ jobs:
|
|||||||
name: Publish for ARMv8
|
name: Publish for ARMv8
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1.0.0
|
- uses: actions/checkout@v2
|
||||||
- uses: uraimo/run-on-arch-action@v1.0.7
|
- uses: uraimo/run-on-arch-action@v1.0.7
|
||||||
id: runcmd
|
id: runcmd
|
||||||
with:
|
with:
|
||||||
|
2
.github/workflows/publish-deb-brew-pkg.yml
vendored
2
.github/workflows/publish-deb-brew-pkg.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
rust-version: stable
|
rust-version: stable
|
||||||
- name: Install cargo-deb
|
- name: Install cargo-deb
|
||||||
run: cargo install cargo-deb
|
run: cargo install cargo-deb
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Build deb package
|
- name: Build deb package
|
||||||
run: cargo deb -p meilisearch-http -o target/debian/meilisearch.deb
|
run: cargo deb -p meilisearch-http -o target/debian/meilisearch.deb
|
||||||
- name: Upload debian pkg to release
|
- name: Upload debian pkg to release
|
||||||
|
4
.github/workflows/publish-docker-latest.yml
vendored
4
.github/workflows/publish-docker-latest.yml
vendored
@ -13,9 +13,6 @@ jobs:
|
|||||||
- name: Check if current release is latest
|
- name: Check if current release is latest
|
||||||
run: echo "##[set-output name=is_latest;]$(sh .github/is-latest-release.sh)"
|
run: echo "##[set-output name=is_latest;]$(sh .github/is-latest-release.sh)"
|
||||||
id: release
|
id: release
|
||||||
- name: Set COMMIT_DATE env variable
|
|
||||||
run: |
|
|
||||||
echo "COMMIT_DATE=$( git log --pretty=format:'%ad' -n1 --date=short )" >> $GITHUB_ENV
|
|
||||||
- name: Publish to Registry
|
- name: Publish to Registry
|
||||||
if: steps.release.outputs.is_latest == 'true'
|
if: steps.release.outputs.is_latest == 'true'
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
@ -23,4 +20,3 @@ jobs:
|
|||||||
name: getmeili/meilisearch
|
name: getmeili/meilisearch
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
buildargs: COMMIT_SHA,COMMIT_DATE
|
|
||||||
|
6
.github/workflows/publish-docker-tag.yml
vendored
6
.github/workflows/publish-docker-tag.yml
vendored
@ -10,10 +10,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Set COMMIT_DATE env variable
|
|
||||||
run: |
|
|
||||||
echo "COMMIT_DATE=$( git log --pretty=format:'%ad' -n1 --date=short )" >> $GITHUB_ENV
|
|
||||||
- name: Publish to Registry
|
- name: Publish to Registry
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
env:
|
env:
|
||||||
@ -23,4 +20,3 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
tag_names: true
|
tag_names: true
|
||||||
buildargs: COMMIT_SHA,COMMIT_DATE
|
|
||||||
|
Loading…
Reference in New Issue
Block a user