Github Action to build docker image of knative mkdocs (#4464)

This commit is contained in:
kmahapatra 2021-11-18 12:28:29 -05:00 committed by GitHub
parent 337122dc2a
commit 3207acca3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
name: Docker Image CI
on:
push:
branches: ['main']
jobs:
build-and-push-image:
name: Build knative mkdocs dockerfile
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
uses: docker/build-push-action@v2
with:
push: true
file: ./hack/docker/Dockerfile
tags: ghcr.io/knative/knative-docs:latest