Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reusable-uffizzi.yaml #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/reusable-uffizzi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,26 @@ jobs:

- name: Create Uffizzi Cluster
env:
UFFIZZI_SERVER: https://pr-1074-deployment-29388-uffizzi-platform.app.uffizzi.com/
UFFIZZI_SERVER: https://pr-1100-deployment-29999-uffizzi-platform.app.uffizzi.com/
UFFIZZI_USER: [email protected]
UFFIZZI_PASSWORD: ${{ secrets.uffizzi-password }}
UFFIZZI_PROJECT: default
UFFIZZI_IMAGE: uffizzi/cli:pr-224
UFFIZZI_IMAGE: uffizzi/cli:pr-239
UFFIZZI_CLUSTER: pr-${{ inputs.pr-number }}
run: |
# Identify if a Cluster for this PR exists.
if docker run --rm \
--env UFFIZZI_SERVER \
--env UFFIZZI_USER \
--env UFFIZZI_PASSWORD \
--env UFFIZZI_PROJECT \
${UFFIZZI_IMAGE} cluster list | grep --quiet ${UFFIZZI_CLUSTER}
then
# If it already exists, fetch the `kubeconfig` to connect to it.
docker run --rm --env UFFIZZI_SERVER \
--env UFFIZZI_USER \
--env UFFIZZI_PASSWORD \
--env UFFIZZI_PROJECT \
--mount type=bind,source="$(pwd)",target=/home \
${UFFIZZI_IMAGE} cluster update-kubeconfig \
--name ${UFFIZZI_CLUSTER} --kubeconfig /home/kubeconfig
Expand All @@ -121,6 +123,7 @@ jobs:
docker run --rm --env UFFIZZI_SERVER \
--env UFFIZZI_USER \
--env UFFIZZI_PASSWORD \
--env UFFIZZI_PROJECT \
--mount type=bind,source="$(pwd)",target=/home \
${UFFIZZI_IMAGE} cluster create \
--name ${UFFIZZI_CLUSTER} --kubeconfig /home/kubeconfig
Expand Down