File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : ' CI'
4+
5+
6+ on :
7+ # workflow_call:
8+ # inputs:
9+ # build-branch: # tag / dev
10+ # required: true
11+ # type: string
12+ push :
13+ branches :
14+ - ' **'
15+ tags :
16+ - ' *'
17+ # pull_request:
18+ # branches:
19+ # - '**'
20+
21+
22+ # env:
23+ # DOCKER_BUILD_IMAGE: "ghcr.io/${{ github.repository }}-fred:${{ github.sha }}"
24+
25+
26+ # permissions:
27+ # pull-requests: write
28+ # contents: read
29+ # actions: read
30+ # checks: write
31+ # packages: write
32+ # security-events: write
33+ # statuses: write
34+
35+
36+
37+ jobs :
38+
39+
40+ docker-changed :
41+ if :
42+ (${{
43+ github.event.push
44+ ||
45+ github.ref_type == 'tag'
46+ }})
47+ runs-on : ubuntu-latest
48+ name : Docker Changed Check
49+ outputs :
50+ feature : ${{ steps.changes-feature.outputs.src }}
51+ development : ${{ steps.changes-development.outputs.src }}
52+ steps :
53+
54+
55+ - uses : actions/checkout@v4
56+
57+
58+ - uses : dorny/paths-filter@v3
59+ name : Development Changes
60+ if :
61+ (
62+ github.ref_name == 'development'
63+ )
64+ id : changes-development
65+ with :
66+ ref : master
67+ filters : |
68+ src:
69+ - '.github/workflows/docker.yaml'
70+ - uses : dorny/paths-filter@v3
71+ name : Feature Branch
72+ if :
73+ (
74+ github.ref_name != 'development'
75+ &&
76+ github.ref_name != 'master'
77+ )
78+ id : changes-feature
79+ with :
80+ ref : development
81+ filters : |
82+ src:
83+ - '.github/workflows/docker.yaml'
84+
85+
86+ docker-check :
87+ needs : docker-changed
88+ name : ' Docker'
89+ if :
90+ (
91+ needs.docker-changed.outputs.feature == 'true'
92+ ||
93+ needs.docker-changed.outputs.development == 'true'
94+ )
95+ uses : ./.github/workflows/docker.yaml
96+ with :
97+ DOCKER_BUILD_IMAGE_NAME : " nofusscomputing/workflow-docker"
98+ DOCKER_PUBLISH_IMAGE_NAME : " nofusscomputing/workflow-docker-publish"
99+ DOCKER_PUBLISH_REGISTRY : " ghcr.io"
100+
101+
102+
103+ # release:
104+ # name: 'Release'
105+ # uses: nofusscomputing/scratchpad/.github/workflows/release.yaml@further-testing
106+ # # with:
107+ # # DOCKER_BUILD_IMAGE_NAME: "${{ github.repository }}"
You can’t perform that action at this time.
0 commit comments