[buildbot] ci: allow pushing of containers during pull requests
LEDE Commits
lede-commits at lists.infradead.org
Mon May 15 08:39:54 PDT 2023
ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/34103cd918bb558521eec724016a94bc70a953b4
commit 34103cd918bb558521eec724016a94bc70a953b4
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Mon May 15 09:25:07 2023 +0200
ci: allow pushing of containers during pull requests
Make it possible to push containers in pull requests in private forks,
so the container can be actually runtime tested before merging the
changes.
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
.github/workflows/build-push.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml
index 451fc87..666c9e3 100644
--- a/.github/workflows/build-push.yml
+++ b/.github/workflows/build-push.yml
@@ -65,14 +65,14 @@ jobs:
- name: Docker meta
id: meta
- if: github.event_name != 'pull_request'
+ if: github.event_name != 'pull_request' || github.repository_owner != 'openwrt'
uses: docker/metadata-action at v4
with:
images: name=ghcr.io/${{ github.repository }}/build${{ matrix.container_flavor }}-v${{ env.BUILDBOT_VERSION }}
- name: Login to GitHub Container Registry
uses: docker/login-action at v2
- if: github.event_name != 'pull_request'
+ if: github.event_name != 'pull_request' || github.repository_owner != 'openwrt'
with:
registry: ghcr.io
username: ${{ github.actor }}
@@ -80,7 +80,7 @@ jobs:
- name: Build container again and push it
uses: docker/build-push-action at v4
- if: github.event_name != 'pull_request'
+ if: github.event_name != 'pull_request' || github.repository_owner != 'openwrt'
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
More information about the lede-commits
mailing list