Skip to content

Commit

Permalink
fix: ga auth and nix run syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
johnae committed Aug 22, 2024
1 parent 4fc0ddf commit cea66a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/hcloud-cost-mgmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
project_id: hallowed-port-433217-t0
workload_identity_provider: projects/507949509448/locations/global/workloadIdentityPools/github/providers/world
export_environment_variables: 'true'
create_credentials_file: 'true'

- name: Set up Cloud SDK
Expand All @@ -39,5 +40,5 @@ jobs:
TF_VAR_kexec_tarball="dummy"
export TF_VAR_kexec_tarball
cd tofu/dev
nix run .#tofuWithPlugins init
nix run .#tofuWithPlugins destroy -auto-approve
nix run .#tofuWithPlugins -- init
nix run .#tofuWithPlugins -- destroy -auto-approve
6 changes: 3 additions & 3 deletions .github/workflows/hcloud-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
TF_VAR_kexec_tarball="$(nix build .#kexec-installer-nixos-unstable-noninteractive --print-out-paths --no-link)/nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz"
export TF_VAR_kexec_tarball
cd tofu/dev
nix run .#tofuWithPlugins init
nix run .#tofuWithPlugins apply -auto-approve
echo remote_ip="$(nix run .#tofuWithPlugins output -raw dev_ip)" >> "$GITHUB_OUTPUT"
nix run .#tofuWithPlugins -- init
nix run .#tofuWithPlugins -- apply -auto-approve
echo remote_ip="$(nix run .#tofuWithPlugins -- output -raw dev_ip)" >> "$GITHUB_OUTPUT"
- name: Unlock
env:
Expand Down

0 comments on commit cea66a8

Please sign in to comment.