mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 04:20:38 +00:00
Add version build
This commit is contained in:
parent
e189fbcbbb
commit
5b68f8793d
1 changed files with 6 additions and 1 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -78,9 +78,14 @@ jobs:
|
|||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Get current version from gradle
|
||||
run: APP_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/signal-cli:latest
|
||||
tags:
|
||||
- ${{ secrets.DOCKERHUB_USERNAME }}/signal-cli:latest
|
||||
- ${{ secrets.DOCKERHUB_USERNAME }}/signal-cli:${{ env.APP_VERSION }}
|
Loading…
Add table
Add a link
Reference in a new issue