Skip to content

Commit bea9e87

Browse files
author
Radek Forgač
committed
cicd
1 parent e59ac6c commit bea9e87

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
# step 'if env.XXX != ""', so we copy these to succinctly test whether
1919
# credentials have been provided before trying to run steps that need them.
2020
UPBOUND_MARKETPLACE_PUSH_ROBOT_USR: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
21+
UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
2122

2223
jobs:
2324
detect-noop:
@@ -256,13 +257,13 @@ jobs:
256257
version: ${{ env.DOCKER_BUILDX_VERSION }}
257258
install: true
258259

259-
- name: Login to Upbound
260-
uses: docker/login-action@v2
261-
if: env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != ''
262-
with:
263-
registry: xpkg.upbound.io
264-
username: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
265-
password: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
260+
# - name: Login to Upbound
261+
# uses: docker/login-action@v2
262+
# if: env.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR != ''
263+
# with:
264+
# registry: xpkg.upbound.io
265+
# username: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }}
266+
# password: ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
266267

267268
- name: Checkout
268269
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3
@@ -312,4 +313,8 @@ jobs:
312313
path: _output/**
313314

314315
- name: Publish Artifacts
315-
run: make publish BRANCH_NAME=${GITHUB_REF##*/}
316+
run: |
317+
curl -sL "https://cli.upbound.io" | sh
318+
sudo mv up /usr/local/bin/
319+
up login -u ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_USR }} -p ${{ secrets.UPBOUND_MARKETPLACE_PUSH_ROBOT_PSW }}
320+
make publish BRANCH_NAME=${GITHUB_REF##*/}

0 commit comments

Comments
 (0)