|
7 | 7 | "release_lib_ref": "83e166f5c8795fa94dec9f4cbdb82205fbb8bf2b" |
8 | 8 | "skip_validation": false |
9 | 9 | "use_github_app_token": true |
10 | | - "lambda-promtail-image": |
11 | | - "env": |
12 | | - "BUILD_TIMEOUT": 60 |
13 | | - "GO_VERSION": "1.24.8" |
14 | | - "IMAGE_PREFIX": "public.ecr.aws/grafana" |
15 | | - "RELEASE_LIB_REF": "83e166f5c8795fa94dec9f4cbdb82205fbb8bf2b" |
16 | | - "RELEASE_REPO": "grafana/loki" |
17 | | - "REPO": "loki" |
18 | | - "needs": |
19 | | - - "check" |
20 | | - "outputs": |
21 | | - "image_digest_linux_amd64": "${{ steps.digest.outputs.digest_linux_amd64 }}" |
22 | | - "image_digest_linux_arm64": "${{ steps.digest.outputs.digest_linux_arm64 }}" |
23 | | - "image_name": "${{ steps.weekly-version.outputs.image_name }}" |
24 | | - "image_tag": "${{ steps.weekly-version.outputs.image_version }}" |
25 | | - "permissions": |
26 | | - "contents": "read" |
27 | | - "id-token": "write" |
28 | | - "runs-on": "${{ matrix.runs_on }}" |
29 | | - "steps": |
30 | | - - "name": "pull release library code" |
31 | | - "uses": "actions/checkout@v4" |
32 | | - "with": |
33 | | - "path": "lib" |
34 | | - "persist-credentials": false |
35 | | - "ref": "${{ env.RELEASE_LIB_REF }}" |
36 | | - "repository": "grafana/loki-release" |
37 | | - - "name": "pull code to release" |
38 | | - "uses": "actions/checkout@v4" |
39 | | - "with": |
40 | | - "path": "release" |
41 | | - "persist-credentials": false |
42 | | - "repository": "${{ env.RELEASE_REPO }}" |
43 | | - - "name": "setup node" |
44 | | - "uses": "actions/setup-node@v4" |
45 | | - "with": |
46 | | - "node-version": "20" |
47 | | - - "name": "Set up Docker buildx" |
48 | | - "uses": "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
49 | | - - "id": "get-secrets" |
50 | | - "name": "get-secrets" |
51 | | - "uses": "grafana/shared-workflows/actions/get-vault-secrets@28361cdb22223e5f1e34358c86c20908e7248760" |
52 | | - "with": |
53 | | - "repo_secrets": | |
54 | | - ECR_ACCESS_KEY=aws-credentials:access_key_id |
55 | | - ECR_SECRET_KEY=aws-credentials:secret_access_key |
56 | | - - "name": "Configure AWS credentials" |
57 | | - "uses": "aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502" |
58 | | - "with": |
59 | | - "aws-access-key-id": "${{ env.ECR_ACCESS_KEY }}" |
60 | | - "aws-region": "us-east-1" |
61 | | - "aws-secret-access-key": "${{ env.ECR_SECRET_KEY }}" |
62 | | - - "name": "Login to Amazon ECR Public" |
63 | | - "uses": "aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076" |
64 | | - "with": |
65 | | - "registry-type": "public" |
66 | | - - "id": "weekly-version" |
67 | | - "name": "Get weekly version" |
68 | | - "run": | |
69 | | - version=$(./tools/image-tag) |
70 | | - echo "image_version=$version" >> $GITHUB_OUTPUT |
71 | | - echo "image_name=${{ env.IMAGE_PREFIX }}/lambda-promtail" >> $GITHUB_OUTPUT |
72 | | - echo "image_full_name=${{ env.IMAGE_PREFIX }}/lambda-promtail:$version" >> $GITHUB_OUTPUT |
73 | | - "working-directory": "release" |
74 | | - - "env": |
75 | | - "MATRIX_ARCH": "${{ matrix.arch }}" |
76 | | - "OUTPUTS_IMAGE_NAME": "${{ steps.weekly-version.outputs.image_name }}" |
77 | | - "OUTPUTS_IMAGE_VERSION": "${{ steps.weekly-version.outputs.image_version }}" |
78 | | - "id": "prepare-tag" |
79 | | - "name": "Prepare tag name" |
80 | | - "run": | |
81 | | - arch=$(echo $MATRIX_ARCH | cut -d'/' -f2) |
82 | | - echo "IMAGE_TAG=${OUTPUTS_IMAGE_NAME}:${OUTPUTS_IMAGE_VERSION}-${arch}" >> $GITHUB_OUTPUT |
83 | | - - "id": "build-push" |
84 | | - "name": "Build and push" |
85 | | - "timeout-minutes": "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
86 | | - "uses": "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
87 | | - "with": |
88 | | - "build-args": | |
89 | | - IMAGE_TAG=${{ steps.weekly-version.outputs.image_version }} |
90 | | - GO_VERSION=${{ env.GO_VERSION }} |
91 | | - "context": "release" |
92 | | - "file": "release/tools/lambda-promtail/Dockerfile" |
93 | | - "outputs": "type=image,push=true" |
94 | | - "platform": "${{ matrix.arch }}" |
95 | | - "provenance": false |
96 | | - "tags": "${{ steps.prepare-tag.outputs.IMAGE_TAG }}" |
97 | | - "strategy": |
98 | | - "fail-fast": true |
99 | | - "matrix": |
100 | | - "include": |
101 | | - - "arch": "linux/amd64" |
102 | | - "runs_on": |
103 | | - - "github-hosted-ubuntu-x64-small" |
104 | | - - "arch": "linux/arm64" |
105 | | - "runs_on": |
106 | | - - "github-hosted-ubuntu-arm64-small" |
107 | 10 | "loki-canary-boringcrypto-image": |
108 | 11 | "env": |
109 | 12 | "BUILD_TIMEOUT": 60 |
|
0 commit comments