Skip to content

Instantly share code, notes, and snippets.

View albingeorge's full-sized avatar
🏠
Working from home

Albin George albingeorge

🏠
Working from home
  • IKEA
  • Amsterdam, Netherlands
View GitHub Profile
@albingeorge
albingeorge / README.md
Created May 20, 2023 12:27 — forked from palewire/README.md
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

// Using native JavaScript...
function getMatches(str, regex) {
var matches = [];
var match;
if (regex.global) {
regex.lastIndex = 0;
} else {
regex = new RegExp(regex.source, 'g' +
@albingeorge
albingeorge / 0_reuse_code.js
Created June 12, 2014 03:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console