#github-actions (2024-08)

Discussions related to GitHub Actions

2024-08-01

Matt Gowie avatar
Matt Gowie

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.

7
1

2024-08-19

actions - GitHub Changelog avatar
actions - GitHub Changelog
05:35:36 PM
Notice of upcoming deprecations and breaking changes in GitHub Actions runners · GitHub Changelogattachment image

Notice of upcoming deprecations and breaking changes in GitHub Actions runners

2024-08-28

Sara Jarjoura avatar
Sara Jarjoura

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

1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Best to use the atmos channel, as this is for general github actions discussions

Sara Jarjoura avatar
Sara Jarjoura

ok, will repost - thanks!

Sara Jarjoura avatar
Sara Jarjoura

oh you beat me to it - thank you!

1

2024-08-29

samuel avatar

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

Gabriela Campana (Cloud Posse) avatar
Gabriela Campana (Cloud Posse)

@Igor Rodionov

2024-08-30

    keyboard_arrow_up