Skip to content

Commit 4494ead

Browse files
committed
add basic conditionals for ci now that repo is public
1 parent 05fb041 commit 4494ead

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ jobs:
167167

168168
- name: Login to Upbound Marketplace
169169
uses: docker/login-action@v3
170+
if: env.XPKG_ACCESS_ID != ''
170171
with:
171172
registry: xpkg.upbound.io
172173
username: ${{ secrets.XPKG_ACCESS_ID }}
@@ -181,6 +182,7 @@ jobs:
181182
run: echo "XPKG_VERSION=v0.0.0-$(date -d@$(git show -s --format=%ct) +%Y%m%d%H%M%S)-$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV
182183

183184
- name: Push Multi-Platform Package to GitHub Container Registry
185+
if: env.XPKG_ACCESS_ID != ''
184186
# XPKG repo name can't contain uppercase characters like UpboundCare, we need to lowercase if the GithubOrg contains them.
185187
# See https://github.com/orgs/community/discussions/25768#discussioncomment-8057564 for XPKG@L lowercase explanation
186188
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${XPKG@L}:${{ env.XPKG_VERSION }}"
@@ -210,4 +212,5 @@ jobs:
210212
OPENAI_API_KEY_B64: ${{ secrets.OPENAI_API_KEY_B64 }}
211213

212214
- name: Run composition tests
215+
if: env.XPKG_ACCESS_ID != ''
213216
run: up test run tests/*

0 commit comments

Comments
 (0)