• GitHub Actions: Scheduled Runs

    2 min read

    github action scheduled workflow interval cron

    GitHub Actions is a powerful automation tool that allows you to automate various tasks and processes, usually triggered by some change in the source repository. Using scheduled runs we are going to be able to schedule runs as well.

    14/03/2023

    Read more...
  • Mask dynamic secrets from GitHub Action's logs

    2 min read

    github action mask secret runtime

    GitHub will mask all the configured secrets from it's logs, but sometimes some secrets are retrieves from different sources (like AWS credentials, secrets fetched from other sources...) We don't want them to be stored as clear text in the GiHub's Actions logs, so we'll have to use add-mask to prevent it

    10/01/2023

    Read more...
  • Adding a comment on a Pull Request using Github Actions

    2 min read

    github action add comment PR

    As part of a CI/CD pipeline involving GitHub Actions we might want to be able to add a comment to the PR to notify the user about something:

    name: demo_add_comment_pr
    on:
      pull_request:
        types: [opened, ready_for_review]
      push:
        branches:
          - '**'
          - '!main'
        paths:    
          - cluster-resources/**
          - tests/**
      workflow_dispatch:
    
    (...)
    

    12/12/2022

    Read more...
  • Github actions: Share environment variables across steps

    1 min read

    github share variable environment variable

    If we want to share data between steps (on a Github action) it's just not enough to export a variable like this:

    export VARIABLE_NAME
    

    05/10/2021

    Read more...
  • How to retrieve a github actions secret

    2 min read

    github action get secret

    When using Github Actions secrets, it won't show any secrets on the action's logs: It is going to replace any string that matches with an existing secret with ***

    24/08/2022

    Read more...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets