Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 285163a

Browse files
committed
ci: actions: create_manifest_instance_build_images_containers: Create action.yml
Signed-off-by: John Andersen <[email protected]>
1 parent 3e9f9e2 commit 285163a

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM docker.io/library/python:3.9 AS builder
2+
3+
COPY images_containers_manifest.py /images_containers_manifest.py
4+
5+
ENTRYPOINT /images_containers_manifest.py
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 'Create Manifest Instance: Build Images Containers: https://github.com/intel/dffml/blob/main/schema/github/actions/build/images/containers/'
2+
description: 'Build manifest from changed Dockerfiles or single instance manifests'
3+
inputs:
4+
root_path:
5+
description: 'Path to root of repo to look for changes in'
6+
required: false
7+
default: '.'
8+
owner_repository:
9+
description: 'owner/repository'
10+
required: false
11+
default: ${{ github.repository }}
12+
branch:
13+
description: 'The branch to build from'
14+
required: false
15+
default: ${{ github.ref_name }}
16+
compare_url:
17+
description: 'Path to root of repo to look for changes in'
18+
required: false
19+
default: ${{ github.event.repository.compare_url }}
20+
gh_access_token:
21+
description: 'GitHub Access Token'
22+
required: false
23+
default: ${{ github.token }}
24+
head:
25+
description: 'Commit hash of HEAD branch'
26+
required: false
27+
default: ${{ github.event.after }}
28+
base:
29+
description: 'Previous commit hash on bash branch'
30+
required: false
31+
default: ${{ github.event.before }}
32+
base_ref:
33+
description: 'base for refs/heads/<base>, the branch being merged into in a pull request'
34+
required: false
35+
default: ${{ github.base_ref }}
36+
prefix:
37+
description: 'Only rebuild images or manifests within these relative to root dir directories'
38+
required: true
39+
no_delta_prefix:
40+
description: 'Do not rebuild images or manifests within these relative to root dir directories on a full rebuild (aka not a delta rebuild, delta rebuild is when only some files changed)'
41+
required: true
42+
outputs:
43+
manifest:
44+
description: 'Manifest for container images to build'
45+
runs:
46+
using: 'docker'
47+
image: 'Dockerfile'
48+
env:
49+
ROOT_PATH: ${{ inputs.root_path }}
50+
OWNER_REPOSITORY: ${{ inputs.owner_repository }}
51+
BRANCH: ${{ inputs.branch }}
52+
COMPARE_URL: ${{ inputs.compare_url }}
53+
GH_ACCESS_TOKEN: ${{ inputs.gh_access_token }}
54+
HEAD: ${{ inputs.head }}
55+
BASE: ${{ inputs.base }}
56+
BASE_REF: ${{ inputs.base_ref }}
57+
PREFIX: ${{ inputs.prefix }}
58+
NO_DELTA_PREFIX: ${{ inputs.no_delta_prefix }}
59+
JSON_INDENT: " "

0 commit comments

Comments
 (0)