Skip to content

Instantly share code, notes, and snippets.

@AF7TI
AF7TI / README.md
Created April 24, 2023 17:53 — 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

@AF7TI
AF7TI / README.md
Last active December 5, 2020 17:43
JavaScript Service Worker Frame-by-Frame Image Animation and GIF Encoding

About

This code demonstrates practical use of JavaScript Service Workers to cache image files and generate a GIF

Caching images locally with a Service Worker enables higher framerate image animations than is possible with default browser behavior

Images are fetched from mountain webcams every minute and aged out after a day

Keypoints shows result of blob detection on diff of adjacent images - accomplished on backend using OpenCV

Online at animate.af7ti.com