mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 13:19:09 +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>
|
||||
<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 QUERY_SERVICE="query-service" >> env-vars
|
||||
echo export FLATTENER_PROCESSOR="flattener-processor" >> env-vars
|
||||
|
||||
- name: Uploading envs
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: env_artifact
|
||||
path: env-vars
|
||||
path: signoz/env-vars
|
||||
|
||||
build-and-push-frontend:
|
||||
runs-on: ubuntu-latest
|
||||
@ -45,16 +46,25 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Downloading image artficate
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: env_artifact
|
||||
path: signoz
|
||||
|
||||
- name: Build frontend docker image
|
||||
shell: bash
|
||||
run: |
|
||||
cd frontend
|
||||
docker build . -f Dockerfile
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Push frontend docker image
|
||||
shell: bash
|
||||
run: |
|
||||
@ -73,16 +83,25 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Downloading image artficate
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: env_artifact
|
||||
path: signoz
|
||||
|
||||
- name: Build query-service image
|
||||
shell: bash
|
||||
run: |
|
||||
cd pkg/query-service
|
||||
docker build . -f Dockerfile
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Push query service docker image
|
||||
shell: bash
|
||||
run: |
|
||||
@ -101,21 +120,31 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Downloading image artficate
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: env_artifact
|
||||
path: signoz
|
||||
|
||||
- name: Build flattener docker image
|
||||
shell: bash
|
||||
run: |
|
||||
cd pkg/processors/flattener
|
||||
docker build . -f Dockerfile
|
||||
|
||||
- name: Build flattener processor docker image
|
||||
shell: bash
|
||||
run: |
|
||||
cd pkg/query-service
|
||||
docker build . -f Dockerfile
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Push flattener processor docker image
|
||||
shell: bash
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user