mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 03:46: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:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
|
||||||
- 'pkg/query-service/**'
|
|
||||||
- 'frontend/**'
|
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- develop
|
- develop
|
||||||
tags:
|
tags:
|
||||||
- ^v[0-9]+.[0-9]+.[0-9]+$
|
- v*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@ -37,7 +34,9 @@ jobs:
|
|||||||
- name: Set docker tag environment
|
- name: Set docker tag environment
|
||||||
run: |
|
run: |
|
||||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
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
|
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||||
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
@ -79,7 +78,9 @@ jobs:
|
|||||||
- name: Set docker tag environment
|
- name: Set docker tag environment
|
||||||
run: |
|
run: |
|
||||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
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
|
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||||
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user