Skip to content

Fedora based Asciidoctor #3

Fedora based Asciidoctor

Fedora based Asciidoctor #3

name: fc-asciidoctor-pr
on:
pull_request:
paths:
- utilities/fc-asciidoctor/**
- .github/workflows/fc-asciidoctor-pr.yaml
jobs:
build:
env:
context: utilities/fc-asciidoctor
image_name: fc-asciidoctor
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Get image tags
id: image_tags
uses: redhat-cop/github-actions/get-image-version@master
with:
IMAGE_CONTEXT_DIR: ${{ env.CONTEXT_DIR }}
- name: Build image
uses: redhat-actions/buildah-build@v2
with:
context: ${{ env.context }}
dockerfiles: |
./${{ env.context }}/Dockerfile
image: ${{ env.image_name }}
oci: true
tags: ${{ steps.check_version.outputs.IMAGE_TAGS }}
- name: Test image
run: |
echo "Running: podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} git --version"
podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} git --version
echo "Running: podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} asciidoctor --version"
podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} asciidoctor --version
echo "Running: podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} asciidoctor-pdf --version"
podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} asciidoctor-pdf --version
echo "Running: podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} pandoc --version"
podman run ${image_name}:${{ steps.check_version.outputs.IMAGE_TAGS }} pandoc --version