Skip to content

Commit 52dc346

Browse files
author
upbound-bot
committed
🔄 synced local '.github/workflows' with remote 'shared/configurations-new-devex/workflows'
1 parent 6011fd7 commit 52dc346

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎.github/workflows/ci.yaml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
UP_API_TOKEN: ${{ secrets.UP_API_TOKEN }}
1515
UP_ROBOT_ID: ${{ secrets.UP_ROBOT_ID }}
1616
UP_ORG: ${{ secrets.UP_ORG }}
17+
XPKG_REGISTRY: xpkg.upbound.io
1718

1819
jobs:
1920
deploy:
@@ -34,7 +35,7 @@ jobs:
3435
- name: Login to xpkg with robot
3536
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
3637
with:
37-
registry: xpkg.upbound.io
38+
registry: ${{ env.XPKG_REGISTRY }}
3839
username: ${{ env.UP_ROBOT_ID }}
3940
password: ${{ env.UP_API_TOKEN }}
4041

@@ -46,3 +47,10 @@ jobs:
4647
tag: ${{ inputs.version || '' }}
4748
# login-check does `up org list` which doesn't work with a robot-token
4849
skip-login-check: true
50+
51+
- name: Append icon overlay to package
52+
if: env.UP_API_TOKEN != '' && hashFiles('./extensions') != '' && inputs.version != ''
53+
run: |
54+
PROJECT_NAME=$(yq '.metadata.name' upbound.yaml)
55+
PACKAGE_REF="${{ env.XPKG_REGISTRY }}/${{ env.UP_ORG }}/${PROJECT_NAME}:${{ inputs.version }}"
56+
up alpha xpkg append --extensions-root=./extensions ${PACKAGE_REF}

0 commit comments

Comments
 (0)