forked from jaegertracing/jaeger
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (55 loc) · 1.86 KB
/
build-jaeger-query.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build Jaeger Query
on:
workflow_dispatch:
push:
branches: [main]
env:
AWS_REGION: us-east-1
PROJECT_NAME: jaeger-query
defaults:
run:
shell: bash
jobs:
docker-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Fetch git tags
run: |
git fetch --prune --unshallow --tags
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Export BRANCH variable # for jaeger scripts
uses: ./.github/actions/setup-branch
- name: Extract branch name # for our scripts
id: extract-branch-name
run: |
echo "BRANCH_NAME=${GITHUB_HEAD_REF#refs/heads/}" >> $GITHUB_ENV
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@13d241b293754004c80624b5567555c4a39ffbe3
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@aaf69d68aa3fb14c1d5a6be9ac61fe15b48453a2
- name: Install tools
run: make install-ci
- uses: docker/setup-qemu-action@v2
- name: Build, tag, and push image to Amazon ECR
run: |
bash scripts/build-upload-docker-jaeger-query.sh
echo "::set-output name=image::$ECR_REGISTRY/$PROJECT_NAME:$COMMIT_HASH"
echo "::set-output name=image::$ECR_REGISTRY/$PROJECT_NAME:latest"
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
COMMIT_HASH: ${{ github.sha }}
PROJECT_NAME: ${{ env.PROJECT_NAME }}
AWS_REGION: ${{ env.AWS_REGION }}