|
23 | 23 |
|
24 | 24 | # Upbound registry specific variables |
25 | 25 | 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 }} |
28 | 26 |
|
29 | 27 | jobs: |
30 | 28 | build-and-publish: |
@@ -110,27 +108,33 @@ jobs: |
110 | 108 | mirror-to-upbound: |
111 | 109 | runs-on: ubuntu-24.04 |
112 | 110 | 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' }} |
114 | 112 | steps: |
115 | | - - name: Setup up |
116 | | - uses: upbound/up-action@v1 |
| 113 | + - name: Setup QEMU |
| 114 | + uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 |
117 | 115 | with: |
118 | | - up-version: ${{ env.UP_VERSION }} |
119 | | - up-channel: stable |
| 116 | + platforms: all |
120 | 117 |
|
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 |
129 | 123 |
|
130 | | - - name: Install crane |
| 124 | + - name: Setup crane |
131 | 125 | uses: imjasonh/setup-crane@31b88efe9de28ae0ffa220711af4b60be9435f6e # v0.4 |
132 | 126 |
|
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 |
134 | 138 | run: | |
135 | 139 | 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 |
136 | 140 |
|
|
0 commit comments