Skip to content

GitHub Action for Docker build and push #2

GitHub Action for Docker build and push

GitHub Action for Docker build and push #2

Workflow file for this run

name: Create kpa-marp-pandoc container image
env:
CONTAINER_NAME: kpa-marp-pandoc
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${CONTAINER_NAME}:latest
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: quay.io/mmul/${CONTAINER_NAME}
username: ${{ secrets.QUAY_ROBOT_NAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}