This brings over the initial buildx prototype from pulumi/pulumi-docker and fixes various build and release issues.
35 lines
764 B
YAML
35 lines
764 B
YAML
name: dockerhub
|
|
description: Push to DockerHub with caching
|
|
runtime: yaml
|
|
plugins:
|
|
providers:
|
|
- name: docker-build
|
|
path: ../../../bin
|
|
outputs:
|
|
ref: ${my-image.ref}
|
|
resources:
|
|
my-image:
|
|
type: docker-build:Image
|
|
properties:
|
|
tags:
|
|
- docker.io/pulumibot/buildkit-e2e
|
|
push: true
|
|
context:
|
|
location: .
|
|
dockerfile:
|
|
inline: FROM alpine
|
|
cacheFrom:
|
|
- registry:
|
|
ref: docker.io/pulumibot/buildkit-e2e:cache
|
|
cacheTo:
|
|
- registry:
|
|
ref: docker.io/pulumibot/buildkit-e2e:cache
|
|
registries:
|
|
- username: pulumibot
|
|
address: docker.io
|
|
password: ${dockerHubPassword}
|
|
config:
|
|
dockerHubPassword:
|
|
type: string
|
|
secret: true
|