This commit is contained in:
parent
0d30fa45d5
commit
280e67042b
1 changed files with 3 additions and 8 deletions
|
|
@ -3,9 +3,8 @@ name: Build
|
|||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "dev[0-9]+.[0-9]+.[0-9]+"
|
||||
- "dev[0-9]+.[0-9]+.[0-9]+*"
|
||||
branches:
|
||||
- dev
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
|
@ -29,11 +28,7 @@ jobs:
|
|||
ca=["/etc/ssl/certs/ca-certificates.crt"]
|
||||
- name: Tag Version
|
||||
run: |
|
||||
if [[ "${{ github.event_name }}" == "push" ]]; then
|
||||
echo "IMAGE_VERSION=${{ github.ref_name }}" | sed 's/dev//g' >> $GITHUB_ENV
|
||||
else
|
||||
echo "IMAGE_VERSION=${{ env.IMAGE_VERSION }}-${{ github.run_number }}" >> $GITHUB_ENV
|
||||
fi
|
||||
echo "IMAGE_VERSION=latest" >> $GITHUB_ENV
|
||||
- name: Login in to registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue