2 min read
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...2 min read
Having a helm chart released (via an index.yaml) is a convenient way of using it. Combining github actions with github pages we can do it in a serverless fashion
31/10/2022
Read more...1 min read
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...2 min read
If you try to add a golang module that is on a private repository you'll get an error similar to this:
$ go get github.com/pet2cattle/golang-demo
go: downloading github.com/pet2cattle/golang-demo v0.0.0-20220925191817-0b4b7026fa7f
go: github.com/pet2cattle/golang-demo@v0.0.0-20220925191817-0b4b7026fa7f: verifying module: github.com/pet2cattle/golang-demo@v0.0.0-20220925191817-0b4b7026fa7f: reading https://sum.golang.org/lookup/github.com/pet2cattle/golang-demo@v0.0.0-20220925191817-0b4b7026fa7f: 404 Not Found
server response:
not found: github.com/pet2cattle/golang-demo@v0.0.0-20220925191817-0b4b7026fa7f: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/75d68059a7355b978972dea177e930262ce90abe410680b8db8a45a587e02c26: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
26/09/2022
Read more...2 min read
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...