#github-actions - August 2024

4 messages

Discussions related to GitHub Actions

August 2024
Matt Gowie
Matt Gowieover 2 years ago
Hey folks, be sure to upvote this issue if you're on GHA: https://github.com/orgs/community/discussions/21276

Bugging my team and I and is an annoying difference with composite actions.
rss
rssabout 2 years ago(edited)
Sara Jarjoura
Sara Jarjouraabout 2 years ago
hey! I'm trying to use the plan action for Terraform and it's not generating any output
I'm getting
Run cloudposse/github-action-atmos-get-setting@v1
  with:
    component: aws-to-github
    stack: dev
    settings-path: settings.github.actions_enabled
  env:
    AWS_ACCOUNT: << AWS ACCOUNT >>
    ENVIRONMENT: dev
    ATMOS_CLI_CONFIG_PATH: /home/runner/work/infra-identity/infra-identity/.github/config/atmos-gitops.yaml
result returned successfully
Run if [[ "false" == "true" ]]; then
  if [[ "false" == "true" ]]; then
    STEP_SUMMARY_FILE=""
  
    if [[ "" == "true" ]]; then
      rm -f ${STEP_SUMMARY_FILE}
    fi
  
  else
    STEP_SUMMARY_FILE=""
  fi
  
  
  if [ -f ${STEP_SUMMARY_FILE} ]; then
    echo "${STEP_SUMMARY_FILE} found"
  
    STEP_SUMMARY=$(cat ${STEP_SUMMARY_FILE} | jq -Rs .)
    echo "result=${STEP_SUMMARY}" >> $GITHUB_OUTPUT
  
    if [[ "false" == "false" ]]; then
      echo "Drift detection mode disabled"
      cat $STEP_SUMMARY_FILE >> $GITHUB_STEP_SUMMARY
    fi
  else 
    echo "${STEP_SUMMARY_FILE} not found"
    echo "result=\"\"" >> $GITHUB_OUTPUT
  fi
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    AWS_ACCOUNT: 166189870787
    ENVIRONMENT: dev
    ATMOS_CLI_CONFIG_PATH: /home/runner/work/infra-identity/infra-identity/.github/config/atmos-gitops.yaml
 found
Drift detection mode disabled

my atmos-gitops.yaml file looks like this
integrations:
  github:
    gitops:
      terraform-version: 1.9.0
      infracost-enabled: false
      role:
        plan: arn:aws:iam::${AWS_ACCOUNT}:role/iam-manager-${ENVIRONMENT}
        apply: arn:aws:iam::${AWS_ACCOUNT}:role/iam-manager-${ENVIRONMENT}

my atmos.yaml file looks like
base_path: "./"

components:
  terraform:
    base_path: "resource/components/terraform/aws"
    apply_auto_approve: false
    deploy_run_init: true
    init_run_reconfigure: true
    auto_generate_backend_file: true

stacks:
  base_path: "resource/stacks"
  included_paths:
    - "deploy/**/*"
  excluded_paths:
    - "deploy/*/_defaults.yaml"
  name_pattern: "{environment}"

logs:
  file: "/dev/stderr"
  level: Info

settings:
  github:
    actions_enabled: true

# <https://pkg.go.dev/text/template>
templates:
  settings:
    # Enable `Go` templates in Atmos stack manifests
    enabled: true
... yadda yadda template stuff

any thoughts? I feel like I must be missing a flag somewhere - I tried setting settings.github.actions_enabled to true but no luck
samuel
samuelabout 2 years ago
Hi good afternoon I have question i need make promove the imagen in registry nexus by envaronment with GA, how can i manage the image promotion between enviroments