added code to extract version number
This commit is contained in:
@@ -31,10 +31,14 @@ jobs:
|
||||
needs: [test]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
-
|
||||
name: Get Version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${gitea.ref_name#refs/tags/}
|
||||
-
|
||||
name: Push Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: 192.168.1.2:5000/${{gitea.repository}}:${{gitea.ref_name}}
|
||||
tags: 192.168.1.2:5000/${{gitea.repository}}:${{steps.get_version.outputs.VERSION}}
|
||||
|
||||
Reference in New Issue
Block a user