-
Notifications
You must be signed in to change notification settings - Fork 270
41 lines (38 loc) · 1.68 KB
/
fc-asciidoctor-pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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