Skip to content

Commit bf38355

Browse files
committed
feat: docker workflow added
MR #1
1 parent 1e61b13 commit bf38355

3 files changed

Lines changed: 1005 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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 }}"

0 commit comments

Comments
 (0)