build tag
All checks were successful
Build & Deploy on Dev / build (push) Successful in 47s

This commit is contained in:
harid 2026-03-05 14:10:56 +07:00
parent 1556479de2
commit f708aec51a
2 changed files with 13 additions and 9 deletions

View file

@ -1,11 +1,11 @@
name: Build name: Build
on: # on:
push: # push:
tags: # tags:
- "v[0-9]+.[0-9]+.[0-9]+" # - "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+*" # - "v[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch: # workflow_dispatch:
env: env:
REGISTRY: ${{ vars.CONTAINER_REGISTRY }} REGISTRY: ${{ vars.CONTAINER_REGISTRY }}

View file

@ -2,8 +2,8 @@ name: Build & Deploy on Dev
on: on:
push: push:
branches: tags:
- dev - "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch: workflow_dispatch:
env: env:
@ -28,7 +28,11 @@ jobs:
ca=["/etc/ssl/certs/ca-certificates.crt"] ca=["/etc/ssl/certs/ca-certificates.crt"]
- name: Tag Version - name: Tag Version
run: | run: |
echo "IMAGE_VERSION=${{ env.IMAGE_VERSION }}" 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 - name: Login in to registry
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with: