Remove COMMIT_SHA and COMMIT_DATE build arg

This commit is contained in:
Clémentine Urquizar 2021-08-31 17:01:58 +02:00
parent 23ccf4429e
commit e002509bf2
No known key found for this signature in database
GPG Key ID: D8E7CC7422E77E1A
4 changed files with 4 additions and 12 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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