Skip to content

Commit 54d5c50

Browse files
committed
fix release
1 parent fab077f commit 54d5c50

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/quick-release.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ env:
2323

2424
# Upbound registry specific variables
2525
UP_DOMAIN: "https://upbound.io"
26-
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
27-
UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
2826

2927
jobs:
3028
build-and-publish:
@@ -110,27 +108,33 @@ jobs:
110108
mirror-to-upbound:
111109
runs-on: ubuntu-24.04
112110
needs: build-and-publish
113-
if: ${{ inputs.push-to-upbound && needs.build-and-publish.result == 'success' && env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != '' && env.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW != '' }}
111+
if: ${{ inputs.push-to-upbound && needs.build-and-publish.result == 'success' }}
114112
steps:
115-
- name: Setup up
116-
uses: upbound/up-action@v1
113+
- name: Setup QEMU
114+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
117115
with:
118-
up-version: ${{ env.UP_VERSION }}
119-
up-channel: stable
116+
platforms: all
120117

121-
- name: Login to Upbound
122-
env:
123-
UP_DOMAIN: ${{ env.UP_DOMAIN }}
124-
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
125-
UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW: ${{ env.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
126-
run: |
127-
up login --token="${UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW}" --account=crossplane-contrib
128-
up organization get
118+
- name: Setup Docker Buildx
119+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
120+
with:
121+
version: ${{ env.DOCKER_BUILDX_VERSION }}
122+
install: true
129123

130-
- name: Install crane
124+
- name: Setup crane
131125
uses: imjasonh/setup-crane@31b88efe9de28ae0ffa220711af4b60be9435f6e # v0.4
132126

133-
- name: Mirror to Upbound Registry
127+
- name: Validate crane installation
128+
run: crane version
129+
130+
- name: Login to Upbound
131+
uses: docker/login-action@28fdb31ff34708d19615a74d67103ddc2ea9725c
132+
with:
133+
registry: "xpkg.upbound.io"
134+
username: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
135+
password: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
136+
137+
- name: Mirror to xpkg.upbound.io
134138
run: |
135139
crane copy ${{ env.CROSSPLANE_REGORG }}/${{ env.PROVIDER_REPO }}:${{ needs.build-and-publish.outputs.version }} ${{ env.UPBOUND_REGORG }}/${{ env.PROVIDER_REPO }}:${{ needs.build-and-publish.outputs.version }} --allow-nondistributable-artifacts
136140

0 commit comments

Comments
 (0)