-
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (61 loc) · 2.59 KB
/
hadolint-build.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# ==================================================================
# Docker Build HadoLint Image
# ==================================================================
# This is the example you should work from to implement your own
# reusable workflow which calls your own reusable docker image builder
# ==================================================================
name: Docker Build HadoLint Image
on:
# allow workflow to be called by other workflows
workflow_call:
# allow workflow to be executed manually
workflow_dispatch:
# --------------------------------------------------------------
# The following execution calls are suggested for a production
# implementation of this linter:
# --------------------------------------------------------------
# execute whenever particular files are updated
# push:
# branches:
# - 'master'
# paths:
# - '.github/actions/hadolint/docker/Dockerfile'
# - '.github/actions/hadolint/docker/entrypoint.sh'
# - '.github/workflows/docker-build-push.yml'
# - '.github/workflows/hadolint-build.yml'
# pull_request:
# branches:
# - 'master'
# paths:
# - '.github/actions/hadolint/docker/Dockerfile'
# - '.github/actions/hadolint/docker/entrypoint.sh'
# - '.github/workflows/docker-build-push.yml'
# - '.github/workflows/hadolint-build.yml'
# execute monthly to keep image fresh with upstream base images
# schedule:
# - cron: '0 12 15 * *'
# immediately halt any previously-started, and still-active runs of this workflow on the same branch
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
docker-build-image:
name: Call Docker Build Image
uses: ./.github/workflows/docker-build-push.yml
permissions:
contents: read
packages: write
pull-requests: write
secrets:
# Don't forget to save these secrets to your repository if you use them!!
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
with:
# Here is where you specify the input parameters defined in docker-build-push.yml
dockerhub-enable: true
ghcr-enable: true
context: "{{defaultContext}}:.github/actions/hadolint/docker"
image-names: |
ragdata/hadolint
ghcr.io/ragsworks/hadolint
platforms: linux/amd64,linux/arm64