Skip to content

Commit

Permalink
Backport image publication to 1.8 branch (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored Nov 18, 2024
1 parent 61514e0 commit 6141fa6
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 194 deletions.
85 changes: 0 additions & 85 deletions .drone/drone.jsonnet

This file was deleted.

109 changes: 0 additions & 109 deletions .drone/drone.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@ codecov:
require_ci_to_pass: yes
notify:
wait_for_ci: yes
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
github_checks:
annotations: false
45 changes: 45 additions & 0 deletions .github/workflows/publish_dockerhub_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# TODO: trigger only if testing or any other checks previously succeeded
name: Push to DockerHub (main)
on:
push:
branches:
- main

permissions:
contents: read
id-token: write

jobs:
build-multiarch:
runs-on: ubuntu-latest-8-cores

steps:
- id: checkout
uses: actions/checkout@v4
with:
lfs: true

- id: push-beyla-to-dockerhub
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
repository: grafana/beyla
context: .
platforms: |-
"linux/amd64"
"linux/arm64"
tags: |-
"main"
push: true

- id: push-beyla-k8s-cache-to-dockerhub
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
repository: grafana/beyla-k8s-cache
file: k8scache.Dockerfile
context: .
platforms: |-
"linux/amd64"
"linux/arm64"
tags: |-
"main"
push: true
49 changes: 49 additions & 0 deletions .github/workflows/publish_dockerhub_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# TODO: trigger only if testing or any other checks previously succeeded
name: Push to DockerHub (release)
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: read
id-token: write

jobs:
build-multiarch:
runs-on: ubuntu-latest-8-cores

steps:
- id: checkout
uses: actions/checkout@v4
with:
lfs: true

- id: push-beyla-to-dockerhub
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
repository: grafana/beyla
context: .
platforms: |-
"linux/amd64"
"linux/arm64"
tags: |-
"type=semver,pattern={{major}}"
"type=semver,pattern={{major}}.{{minor}}"
"type=semver,pattern={{major}}.{{minor}}.{{patch}}"
push: true

- id: push-beyla-k8s-cache-to-dockerhub
uses: grafana/shared-workflows/actions/build-push-to-dockerhub@main
with:
repository: grafana/beyla-k8s-cache
file: k8scache.Dockerfile
context: .
platforms: |-
"linux/amd64"
"linux/arm64"
tags: |-
"type=semver,pattern={{major}}"
"type=semver,pattern={{major}}.{{minor}}"
"type=semver,pattern={{major}}.{{minor}}.{{patch}}"
push: true

0 comments on commit 6141fa6

Please sign in to comment.