Skip to content

Commit

Permalink
get instead of create
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Jun 19, 2024
1 parent bc555a9 commit 5ef63c9
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/publish-chrome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,34 @@ jobs:
with:
token: ${{ secrets.LINODE_PAT }}

- name: Create Builder
# For some reason, Linodes created via cli do not work with ssh/ssh-keyscan/scp
# - name: Create Builder
# id: create_builder
# run: |
# builder_info="$(linode-cli linodes create \
# --authorized_users dclivekit \
# --backups_enabled false \
# --booted true \
# --image linode/ubuntu22.04 \
# --label chrome-builder \
# --private_ip false \
# --region us-west \
# --root_pass '${{ secrets.LINODE_ROOT_PASS }}' \
# --type g6-dedicated-4 \
# --json)"
# builder_id="$(echo $builder_info | jq -r '.[0].id')"
# builder_ip="$(echo $builder_info | jq -r '.[0].ipv4[0]')"
# echo "builder_id: $builder_id"
# echo "builder_ip: $builder_ip"
# echo "builder_id=$builder_id" >> $GITHUB_OUTPUT
# echo "builder_ip=$builder_ip" >> $GITHUB_OUTPUT
# env:
# LINODE_CLI_TOKEN: ${{ secrets.LINODE_PAT }}

- name: Get Builder
id: create_builder
run: |
builder_info="$(linode-cli linodes create \
--authorized_users dclivekit \
--backups_enabled false \
--booted true \
--image linode/ubuntu22.04 \
--label chrome-builder \
--private_ip false \
--region us-west \
--root_pass '${{ secrets.LINODE_ROOT_PASS }}' \
--type g6-dedicated-4 \
--json)"
builder_info="$(linode-cli linodes list --label chrome-builder --json)"
builder_id="$(echo $builder_info | jq -r '.[0].id')"
builder_ip="$(echo $builder_info | jq -r '.[0].ipv4[0]')"
echo "builder_id: $builder_id"
Expand Down

0 comments on commit 5ef63c9

Please sign in to comment.