fix build get tag
This commit is contained in:
parent
f7fc2c24bd
commit
acf5c6462e
1 changed files with 5 additions and 2 deletions
|
|
@ -32,8 +32,11 @@ jobs:
|
|||
ca=["/etc/ssl/certs/ca-certificates.crt"]
|
||||
- name: Tag Version
|
||||
run: |
|
||||
echo "IMAGE_VERSION=latest"
|
||||
- name: Login in to registry
|
||||
if [ "${{ github.ref_type }}" == "tag" ]; then
|
||||
echo "IMAGE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "IMAGE_VERSION=latest" >> $GITHUB_ENV
|
||||
fi - name: Login in to registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue