Start adding acs workflows talk.

This commit is contained in:
2023-07-30 18:56:53 +12:00
parent a8862c3728
commit 0118456a7a
9 changed files with 624 additions and 1 deletions

View File

@ -0,0 +1,25 @@
# Build the guestbook example
# Usage:
# [VERSION=v2] [REGISTRY="docker.io/ibmcom"] make build
VERSION?=v2
REGISTRY?=docker.io/ibmcom
all: build
release: clean build push clean
# Builds a docker image that builds the app and packages it into a
# minimal docker image
build:
docker build --pull -t "${REGISTRY}/guestbook:${VERSION}" .
# push the image to an registry
push: build
docker push ${REGISTRY}/guestbook:${VERSION}
# remove previous images
clean:
docker rmi -f "${REGISTRY}/guestbook:${VERSION}" || true
.PHONY: release clean build push all