Skip to content

Instantly share code, notes, and snippets.

@jaredly
jaredly / App.re
Last active January 1, 2021 17:34
ReasonReact Context API Example
module StringContext =
Context.MakePair({
type t = string;
let defaultValue = "Awesome";
});
let component = ReasonReact.statelessComponent("Tree");
let make = _children => {
@cr33dx
cr33dx / gist:db54e34f07eaa68870483e6afa9961f4
Last active October 25, 2021 16:59
Delete All Tags In Digital Ocean Repository except the newest.
repo=repo_name
doctl r r lt $repo | awk 'NR>2 {print $1}' | xargs doctl r r dt -f $repo
@palewire
palewire / README.md
Last active July 4, 2024 09:50
How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

Here's how I configured a GitHub Action so that a new version issued by GitHub's release interface will build a Dockerfile, tag it with the version number and upload it to Google Artifact Registry.

Before you attempt the steps below, you need the following:

  • A GitHub repository that contains a working Dockerfile
  • The Google Cloud SDK tool gcloud installed and authenticated

Create a Workload Identity Federation