Skip to content

Commit

Permalink
Merge pull request #4 from uselagoon/lagoon_cli_3x_hotfix
Browse files Browse the repository at this point in the history
Lagoon cli 3x hotfix
  • Loading branch information
bomoko authored Jan 31, 2025
2 parents dc93169 + 0d5398b commit f3b7424
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use the uselagoon/lagoon-cli as a base image
# FROM uselagoon/lagoon-cli as base
FROM ghcr.io/uselagoon/lagoon-cli:v0.31.3 as base
FROM ghcr.io/uselagoon/lagoon-cli:v0.31.4 as base


RUN apk update && apk upgrade && apk add python3 py3-pip
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
uses: actions/checkout@v2

- name: Lagoon Upsert Variable
uses: uselagoon/lagoon-action@v1
uses: uselagoon/lagoon-action@v1.0.1
with:
action: 'upsert_variable'
ssh_private_key: ${{ secrets.LAGOON_SSH_PRIVATE_KEY }}
Expand Down
10 changes: 8 additions & 2 deletions action.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def deploy_environment(project_name, environment_name, buildVars, wait_till_depl
debugLog(f"Running Lagoon CLI command: {lagoon_command}")

# Call the Lagoon CLI command and capture the output
build_id = run_lagoon_command(lagoon_command)
output = run_lagoon_command(lagoon_command)

# grab buildid
result_json = json.loads(output)
build_id = result_json["result"]

debugLog(f"Deployment initiated. Build ID: {build_id}")

Expand Down Expand Up @@ -120,7 +124,9 @@ def deploy_pull_request(project_name, pr_title, pr_number, baseBranchName, baseB
debugLog(f"Running Lagoon CLI command: {lagoon_command}")

# Call the Lagoon CLI command and capture the output
build_id = run_lagoon_command(lagoon_command)
output = run_lagoon_command(lagoon_command)
result_json = json.loads(output)
build_id = result_json["result"]

debugLog(f"Deployment initiated. Build ID: {build_id}")

Expand Down

0 comments on commit f3b7424

Please sign in to comment.