Skip to content

Commit b45ed84

Browse files
committed
CI: Login to docker registry before upgrade
1 parent 9702f9a commit b45ed84

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,17 @@ jobs:
410410
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
411411
if: inputs.upgrade
412412

413+
- name: Login to docker registry
414+
run: |
415+
docker run -t --rm \
416+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
417+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
418+
${{ steps.kayobe_image.outputs.kayobe_image }} \
419+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/docker-registry-login.yml
420+
env:
421+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
422+
if: inputs.upgrade
423+
413424
- name: Service upgrade
414425
run: |
415426
docker run -t --rm \

0 commit comments

Comments
 (0)