From dea2dbc19e89fe5cd8e92309b726e081f5b4f561 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Tue, 10 Sep 2024 15:59:52 +0200 Subject: [PATCH 1/4] build on CI --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e9bdc01 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release + +# do this once it works +#on: +# push: +# tags: +# - "v*.*.*" + +on: + pull_request: + +permissions: + contents: read + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - id: checkout + uses: actions/checkout@v4 + + - id: push-to-dockerhub + uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main + with: + repository: ${{ github.repository }} # or any other dockerhub repository + context: . + file: docker/Dockerfile + push: true + platforms: linux/amd64,linux/arm64 + tags: |- + "2024-test-${{ github.sha }}" +# "latest" From da99201f16318aa98eb99d5f59c3e33ea8932ab5 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Tue, 10 Sep 2024 16:02:10 +0200 Subject: [PATCH 2/4] build on CI --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9bdc01..ff46e91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,8 @@ jobs: repository: ${{ github.repository }} # or any other dockerhub repository context: . file: docker/Dockerfile - push: true +# push: true + push: false platforms: linux/amd64,linux/arm64 tags: |- "2024-test-${{ github.sha }}" From 7eee314c41d707814196867a445d19ba6ed2c0a5 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Tue, 10 Sep 2024 16:09:08 +0200 Subject: [PATCH 3/4] build on CI --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff46e91..fc225fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,8 +25,7 @@ jobs: uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main with: repository: ${{ github.repository }} # or any other dockerhub repository - context: . - file: docker/Dockerfile + context: docker # push: true push: false platforms: linux/amd64,linux/arm64 From a5c3bec5202534b6b569ca4675eb9e66bf2cedfe Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Tue, 10 Sep 2024 17:12:24 +0200 Subject: [PATCH 4/4] build on CI --- .github/workflows/release.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc225fb..3acf2e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,9 @@ name: Release -# do this once it works -#on: -# push: -# tags: -# - "v*.*.*" - on: - pull_request: + push: + tags: + - "v*.*.*" permissions: contents: read @@ -24,11 +20,10 @@ jobs: - id: push-to-dockerhub uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main with: - repository: ${{ github.repository }} # or any other dockerhub repository + repository: grafana/otel-lgtm context: docker -# push: true - push: false + push: true platforms: linux/amd64,linux/arm64 tags: |- - "2024-test-${{ github.sha }}" -# "latest" + type=match,pattern=v(.*),group=1 + latest