Skip to content

Commit c4812d6

Browse files
authored
Only push image on published releases (#5)
Signed-off-by: Yuri Shkuro <github@ysh.us>
1 parent ede3aee commit c4812d6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build-and-push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
release:
9+
types: [ published ]
810
workflow_dispatch:
911

1012
env:
@@ -29,7 +31,7 @@ jobs:
2931
uses: docker/setup-buildx-action@v3
3032

3133
- name: Log in to the Container registry
32-
if: github.event_name != 'pull_request'
34+
if: github.event_name == 'release'
3335
uses: docker/login-action@v3
3436
with:
3537
registry: ${{ env.REGISTRY }}
@@ -52,7 +54,7 @@ jobs:
5254
with:
5355
context: .
5456
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
55-
push: ${{ github.event_name != 'pull_request' }}
57+
push: ${{ github.event_name == 'release' }}
5658
tags: ${{ steps.meta.outputs.tags }}
5759
labels: ${{ steps.meta.outputs.labels }}
5860
cache-from: type=gha

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ FROM ghcr.io/jaegertracing/base-image-with-debugger:latest
1717
# ... your build steps ...
1818
```
1919

20+
## Releases
21+
22+
The container image is only pushed on published GitHub Releases.
23+
2024
## Maintenance
2125

2226
The versions of the base image and Delve are managed by Renovate.
2327

28+
https://developer.mend.io/github/jaegertracing/base-image-with-debugger
29+
2430
## Local Development
2531

2632
You can build the image locally using the provided `Makefile`:

0 commit comments

Comments
 (0)