Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
UP_API_TOKEN: ${{ secrets.UP_API_TOKEN }}
UP_ROBOT_ID: ${{ secrets.UP_ROBOT_ID }}
UP_ORG: ${{ secrets.UP_ORG }}
XPKG_REGISTRY: xpkg.upbound.io

jobs:
deploy:
Expand All @@ -32,9 +33,9 @@ jobs:

# doesn't work with plain token when pushing otherwise
- name: Login to xpkg with robot
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
with:
registry: xpkg.upbound.io
registry: ${{ env.XPKG_REGISTRY }}
username: ${{ env.UP_ROBOT_ID }}
password: ${{ env.UP_API_TOKEN }}

Expand All @@ -46,3 +47,10 @@ jobs:
tag: ${{ inputs.version || '' }}
# login-check does `up org list` which doesn't work with a robot-token
skip-login-check: true

- name: Append icon overlay to package
if: env.UP_API_TOKEN != '' && hashFiles('./extensions') != '' && inputs.version != ''
run: |
PROJECT_NAME=$(yq '.metadata.name' upbound.yaml)
PACKAGE_REF="${{ env.XPKG_REGISTRY }}/${{ env.UP_ORG }}/${PROJECT_NAME}:${{ inputs.version }}"
up alpha xpkg append --extensions-root=./extensions ${PACKAGE_REF}
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

# doesn't work with plain token when pushing otherwise
- name: Login to xpkg with robot
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
with:
registry: xpkg.upbound.io
username: ${{ env.UP_ROBOT_ID }}
Expand Down
3 changes: 1 addition & 2 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ rules:
line-length: disable
document-start: disable
indentation:
spaces: consistent
indent-sequences: false
indent-sequences: consistent
Loading