mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 17:45:55 +08:00
adding download env step in github workflow (#189)
* adding download env step in github workflow Signed-off-by: rajdas98 <mail.rajdas@gmail.com> * adding download env step in github workflow Signed-off-by: rajdas98 <mail.rajdas@gmail.com>
This commit is contained in:
parent
09586faed2
commit
0c12eaf89b
4
.github/workflows/README.md
vendored
4
.github/workflows/README.md
vendored
@ -1,6 +1,6 @@
|
|||||||
To Run github workflow, few environment varibale needs to added in github secrets
|
To run GitHub workflow, a few environment variables needs to add in GitHub secrets
|
||||||
|
|
||||||
#### Tunables
|
#### Environment Variables
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
31
.github/workflows/push.yaml
vendored
31
.github/workflows/push.yaml
vendored
@ -32,11 +32,12 @@ jobs:
|
|||||||
echo export FRONTEND_IMAGE="frontend" >> env-vars
|
echo export FRONTEND_IMAGE="frontend" >> env-vars
|
||||||
echo export QUERY_SERVICE="query-service" >> env-vars
|
echo export QUERY_SERVICE="query-service" >> env-vars
|
||||||
echo export FLATTENER_PROCESSOR="flattener-processor" >> env-vars
|
echo export FLATTENER_PROCESSOR="flattener-processor" >> env-vars
|
||||||
|
|
||||||
- name: Uploading envs
|
- name: Uploading envs
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: env_artifact
|
name: env_artifact
|
||||||
path: env-vars
|
path: signoz/env-vars
|
||||||
|
|
||||||
build-and-push-frontend:
|
build-and-push-frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -45,16 +46,25 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Downloading image artficate
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: env_artifact
|
||||||
|
path: signoz
|
||||||
|
|
||||||
- name: Build frontend docker image
|
- name: Build frontend docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
docker build . -f Dockerfile
|
docker build . -f Dockerfile
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push frontend docker image
|
- name: Push frontend docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -73,16 +83,25 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Downloading image artficate
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: env_artifact
|
||||||
|
path: signoz
|
||||||
|
|
||||||
- name: Build query-service image
|
- name: Build query-service image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd pkg/query-service
|
cd pkg/query-service
|
||||||
docker build . -f Dockerfile
|
docker build . -f Dockerfile
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push query service docker image
|
- name: Push query service docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -101,21 +120,31 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Downloading image artficate
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: env_artifact
|
||||||
|
path: signoz
|
||||||
|
|
||||||
- name: Build flattener docker image
|
- name: Build flattener docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd pkg/processors/flattener
|
cd pkg/processors/flattener
|
||||||
docker build . -f Dockerfile
|
docker build . -f Dockerfile
|
||||||
|
|
||||||
- name: Build flattener processor docker image
|
- name: Build flattener processor docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd pkg/query-service
|
cd pkg/query-service
|
||||||
docker build . -f Dockerfile
|
docker build . -f Dockerfile
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push flattener processor docker image
|
- name: Push flattener processor docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user