Skip to content

Commit

Permalink
mount file path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayali M authored and Sayali M committed Feb 9, 2024
1 parent df1eac9 commit ef9e405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,12 @@ jobs:
- name: Mount commands.json
run: |
spacectl stack environment mount --id liquibase-github-actions commands.json commands.json
echo "commands_file_path=${commands_file_path}"
- name: Deploy infrastructure
# if: github.ref == 'refs/heads/main'
env:
SPACELIFT_API_KEY_ENDPOINT: ${{ secrets.SPACELIFT_API_KEY_ENDPOINT }}
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }}
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }}
#COMMANDS_FILE_PATH: ${{ env.commands_file_path }}
run: |
spacectl stack set-current-commit --id liquibase-github-actions --sha ${{ github.sha }}
spacectl stack deploy --id liquibase-github-actions --auto-confirm
Expand Down
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ locals {
commands = jsondecode(file("${path.module}/commands.json"))
}

output "commands_file_exists" {
value = local.commands_file_exists
}

resource "github_repository" "liquibase-github-actions" {
for_each = toset(local.commands)
name = replace(each.key, " ", "-")
Expand Down

0 comments on commit ef9e405

Please sign in to comment.