Skip to content

Instantly share code, notes, and snippets.

View vusimoy0's full-sized avatar
:octocat:
//

Vusi Moyo vusimoy0

:octocat:
//
View GitHub Profile
@vusimoy0
vusimoy0 / README.md
Created March 14, 2023 15:07 — 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

version: '3.6'
services:
wordpress:
image: 'bitnami/wordpress:latest'
labels:
kompose.service.type: nodeport
ports:
- '5000:80'
- '5100:443'
volumes:
version: '3.6'
services:
fix-mariadb-volume-ownership:
image: 'bitnami/mariadb:latest'
user: root
command: chown -R 1001:1001 /bitnami
volumes:
- './mariadb_data:/bitnami'
mariadb:
image: 'bitnami/mariadb:latest'
@vusimoy0
vusimoy0 / build.gradle.ftl
Last active April 6, 2020 10:41
build.gradle template
<#import "./shared_macros.ftl" as shared>
<#import "root://activities/common/kotlin_macros.ftl" as kt>
<#if isLibraryProject>
apply plugin: 'com.android.library'
<#elseif isDynamicFeature>
apply plugin: 'com.android.dynamic-feature'
<#else>
apply plugin: 'com.android.application'
</#if>
<@kt.addKotlinPlugins />