Skip to content

update the readme

update the readme #4

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- main
release:
types: [published]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_TAG: ${{ github.sha }}
jobs:
build-and-push-docker-image:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- docker_file: Dockerfile
image: ghcr.io/krishanthisera/grender
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ matrix.image }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
file: ${{ matrix.docker_file }}