From 0bb3dd5954d2173a917f2e8f10db8a4c2e5a4983 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Wed, 21 Feb 2024 08:47:17 -0500 Subject: [PATCH 1/2] nightly build and publish Signed-off-by: Pierre Tessier --- .github/workflows/build-images.yml | 4 +++- .github/workflows/nightly-release.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/nightly-release.yml diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index aa0ac093e4..cf409d2452 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -173,7 +173,9 @@ jobs: platforms: linux/amd64,linux/arm64 push: ${{ inputs.push }} tags: | - ${{ env.DOCKERHUB_REPO }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }} + ${{ env.DOCKERHUB_REPO }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }} + ${{ env.DOCKERHUB_REPO }}:latest-${{matrix.file_tag.tag_suffix }} ${{ env.GHCR_REPO }}:${{ inputs.version }}-${{ matrix.file_tag.tag_suffix }} + ${{ env.GHCR_REPO }}:latest-${{ matrix.file_tag.tag_suffix }} cache-from: type=gha cache-to: type=gha diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml new file mode 100644 index 0000000000..4357759bfc --- /dev/null +++ b/.github/workflows/nightly-release.yml @@ -0,0 +1,16 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 +name: Nightly Release + +on: + schedule: + # Runs at 00:00 UTC every day + - cron: '0 0 * * *' + +jobs: + build_and_push_images: + uses: ./.github/workflows/build-images.yml + with: + push: true + version: nightly-${{ github.run_id }} + secrets: inherit From b0944d496dd7896e40fddb4c24ecae5b6e60221c Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Wed, 21 Feb 2024 09:00:25 -0500 Subject: [PATCH 2/2] add nightly releases Signed-off-by: Pierre Tessier --- .github/workflows/build-images.yml | 2 +- CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index cf409d2452..06b4595a9b 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -173,7 +173,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: ${{ inputs.push }} tags: | - ${{ env.DOCKERHUB_REPO }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }} + ${{ env.DOCKERHUB_REPO }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }} ${{ env.DOCKERHUB_REPO }}:latest-${{matrix.file_tag.tag_suffix }} ${{ env.GHCR_REPO }}:${{ inputs.version }}-${{ matrix.file_tag.tag_suffix }} ${{ env.GHCR_REPO }}:latest-${{ matrix.file_tag.tag_suffix }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 226ac01d5d..6d31cb3888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ the release. ([#1396](https://github.com/open-telemetry/opentelemetry-demo/pull/1396)) * [chore] fix Make targets for restart and redeploy ([#1397](https://github.com/open-telemetry/opentelemetry-demo/pull/1397)) +* [chore] add nightly releases + ([#1398](https://github.com/open-telemetry/opentelemetry-demo/pull/1398)) ## 1.8.0