mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-10 22:29:00 +08:00
ci(push): 👷 push workflow update (#695)
* ci(push): 👷 remove prefix v for docker images Signed-off-by: Prashant Shahi <prashant@signoz.io> * ci(push): 👷 remove path trigger and update tags regex Signed-off-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
parent
420f601a68
commit
a5bf4c1a61
13
.github/workflows/push.yaml
vendored
13
.github/workflows/push.yaml
vendored
@ -2,14 +2,11 @@ name: push
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'pkg/query-service/**'
|
||||
- 'frontend/**'
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
tags:
|
||||
- ^v[0-9]+.[0-9]+.[0-9]+$
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
|
||||
@ -37,7 +34,9 @@ jobs:
|
||||
- name: Set docker tag environment
|
||||
run: |
|
||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
||||
echo "DOCKER_TAG=${{ steps.branch-name.outputs.tag }}" >> $GITHUB_ENV
|
||||
tag="${{ steps.branch-name.outputs.tag }}"
|
||||
tag="${tag:1}"
|
||||
echo "DOCKER_TAG=$tag" >> $GITHUB_ENV
|
||||
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
||||
else
|
||||
@ -79,7 +78,9 @@ jobs:
|
||||
- name: Set docker tag environment
|
||||
run: |
|
||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
||||
echo "DOCKER_TAG=${{ steps.branch-name.outputs.tag }}" >> $GITHUB_ENV
|
||||
tag="${{ steps.branch-name.outputs.tag }}"
|
||||
tag="${tag:1}"
|
||||
echo "DOCKER_TAG=$tag" >> $GITHUB_ENV
|
||||
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user