Add version and hash to docker container (#167)
* Add version and git hash to image * Add version reporting to HA via api
This commit is contained in:
1 parent
76308cc209
commit
7de510cb1f
13 files changed
+123
-12
No files matched your search
@@ -45,6 +45,13 @@ jobs:
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
|
||||
- name: Create version files
|
||||
run: |
|
||||
echo "${{ steps.meta.outputs.version }}" > version.txt
|
||||
echo "${{ github.sha }}" > version_githash.txt
|
||||
ls -ltr
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: push
|
||||
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
|
||||
|
||||
Reference in new issue
Block a user