Added docker build

This commit is contained in:
Vinzenz Stadtmueller 2021-07-31 20:59:50 +02:00
parent ba6937cfc0
commit 0ba9d0b22c
2 changed files with 27 additions and 1 deletions

View file

@ -6,6 +6,32 @@ on:
- master
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: vstadtmueller/cert-manager-webhook-powerdns
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
release:
runs-on: ubuntu-latest
steps:

View file

@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: cert-manager-webhook-powerdns
version: 0.1.0
version: 0.1.1