|
|
|
|
@ -95,7 +95,7 @@ jobs: |
|
|
|
|
--target-branch "${{ steps.extract_branch.outputs.branch }}" \ |
|
|
|
|
--token "${{ steps.github_app_token.outputs.token }}" \ |
|
|
|
|
--dry-run ${{ fromJSON(env.DRY_RUN) }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
working-directory: "lib" |
|
|
|
|
dist: |
|
|
|
|
needs: |
|
|
|
|
@ -113,11 +113,11 @@ jobs: |
|
|
|
|
persist-credentials: false |
|
|
|
|
repository: "${{ env.RELEASE_REPO }}" |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Cloud SDK" |
|
|
|
|
uses: "google-github-actions/setup-gcloud@v2" |
|
|
|
|
uses: "google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a" |
|
|
|
|
with: |
|
|
|
|
version: ">= 452.0.0" |
|
|
|
|
- id: "get-secrets" |
|
|
|
|
@ -158,7 +158,7 @@ jobs: |
|
|
|
|
working-directory: "release" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}" |
|
|
|
|
path: "release/dist" |
|
|
|
|
@ -186,16 +186,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -205,7 +205,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -215,7 +215,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/fluent-bit-plugin-loki:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/fluent-bit-plugin-loki-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -250,16 +250,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -269,7 +269,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -279,7 +279,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/fluent-plugin-loki:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/fluent-plugin-loki-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -314,16 +314,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -333,7 +333,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -343,7 +343,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/logcli:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/logcli-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -384,16 +384,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -403,7 +403,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -413,7 +413,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/logstash-output-loki:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/logstash-output-loki-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -448,16 +448,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -467,7 +467,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -477,7 +477,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/loki:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/loki-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -518,16 +518,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -537,7 +537,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -547,7 +547,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/loki-canary:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/loki-canary-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -588,16 +588,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -607,7 +607,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -617,7 +617,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/loki-canary-boringcrypto:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/loki-canary-boringcrypto-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -658,19 +658,19 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up QEMU" |
|
|
|
|
uses: "docker/setup-qemu-action@v3" |
|
|
|
|
uses: "docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392" |
|
|
|
|
- name: "set up docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
mkdir -p plugins |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch}}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -683,7 +683,7 @@ jobs: |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: | |
|
|
|
|
IMAGE_TAG=${{ needs.version.outputs.version }} |
|
|
|
|
@ -703,7 +703,7 @@ jobs: |
|
|
|
|
. |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/plugins" |
|
|
|
|
path: "release/plugins/loki-docker-driver-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -741,16 +741,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -760,7 +760,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -770,7 +770,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/promtail:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/promtail-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -811,16 +811,16 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
node-version: 20 |
|
|
|
|
- name: "auth gcs" |
|
|
|
|
uses: "google-github-actions/auth@v2" |
|
|
|
|
uses: "google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f" |
|
|
|
|
with: |
|
|
|
|
credentials_json: "${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}" |
|
|
|
|
- name: "Set up Docker buildx" |
|
|
|
|
uses: "docker/setup-buildx-action@v3" |
|
|
|
|
uses: "docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" |
|
|
|
|
- id: "platform" |
|
|
|
|
name: "Parse image platform" |
|
|
|
|
run: | |
|
|
|
|
mkdir -p images |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform="$(echo "${{ matrix.arch }}" | sed "s/\(.*\)\/\(.*\)/\1-\2/")" |
|
|
|
|
echo "platform=${platform}" >> $GITHUB_OUTPUT |
|
|
|
|
echo "platform_short=$(echo ${{ matrix.arch }} | cut -d / -f 2)" >> $GITHUB_OUTPUT |
|
|
|
|
@ -830,7 +830,7 @@ jobs: |
|
|
|
|
if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Build and export" |
|
|
|
|
timeout-minutes: "${{ fromJSON(env.BUILD_TIMEOUT) }}" |
|
|
|
|
uses: "docker/build-push-action@v6" |
|
|
|
|
uses: "docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1" |
|
|
|
|
with: |
|
|
|
|
build-args: "IMAGE_TAG=${{ needs.version.outputs.version }}" |
|
|
|
|
context: "release" |
|
|
|
|
@ -840,7 +840,7 @@ jobs: |
|
|
|
|
tags: "${{ env.IMAGE_PREFIX }}/loki-query-tee:${{ needs.version.outputs.version }}-${{ steps.platform.outputs.platform_short }}" |
|
|
|
|
- if: "${{ fromJSON(needs.version.outputs.pr_created) }}" |
|
|
|
|
name: "Upload artifacts" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@v2" |
|
|
|
|
uses: "google-github-actions/upload-cloud-storage@386ab77f37fdf51c0e38b3d229fad286861cc0d0" |
|
|
|
|
with: |
|
|
|
|
destination: "${{ env.BUILD_ARTIFACTS_BUCKET }}/${{ github.sha }}/images" |
|
|
|
|
path: "release/images/loki-query-tee-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}.tar" |
|
|
|
|
@ -902,7 +902,7 @@ jobs: |
|
|
|
|
name: "get release version" |
|
|
|
|
run: | |
|
|
|
|
npm install |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -z "${{ env.RELEASE_AS }}" ]]; then |
|
|
|
|
npm exec -- release-please release-pr \ |
|
|
|
|
--consider-all-branches \ |
|
|
|
|
@ -932,16 +932,16 @@ jobs: |
|
|
|
|
--token "${{ steps.github_app_token.outputs.token }}" \ |
|
|
|
|
--release-as "${{ env.RELEASE_AS }}" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat release.json |
|
|
|
|
|
|
|
|
|
if [[ `jq length release.json` -gt 1 ]]; then |
|
|
|
|
|
|
|
|
|
if [[ `jq length release.json` -gt 1 ]]; then |
|
|
|
|
echo 'release-please would create more than 1 PR, so cannot determine correct version' |
|
|
|
|
echo "pr_created=false" >> $GITHUB_OUTPUT |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [[ `jq length release.json` -eq 0 ]]; then |
|
|
|
|
|
|
|
|
|
if [[ `jq length release.json` -eq 0 ]]; then |
|
|
|
|
echo "pr_created=false" >> $GITHUB_OUTPUT |
|
|
|
|
else |
|
|
|
|
version="$(npm run --silent get-version)" |
|
|
|
|
@ -958,4 +958,4 @@ name: "Prepare Minor Release PR from Weekly" |
|
|
|
|
permissions: |
|
|
|
|
contents: "write" |
|
|
|
|
id-token: "write" |
|
|
|
|
pull-requests: "write" |
|
|
|
|
pull-requests: "write" |
|
|
|
|
|