Skip to content

Commit e8b1d96

Browse files
author
Alan Christie
committed
- Adds our standard control variables comment-block
1 parent ef65640 commit e8b1d96

File tree

4 files changed

+82
-5
lines changed

4 files changed

+82
-5
lines changed

.github/workflows/build-latest.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
---
22
name: build and push latest
33

4+
# -----------------
5+
# Control variables (GitHub Secrets)
6+
# -----------------
7+
#
8+
# At the GitHub 'organisation' or 'project' level you must have the following
9+
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
10+
#
11+
# DOCKERHUB_USERNAME
12+
# DOCKERHUB_TOKEN
13+
#
14+
# -----------
15+
# Environment (GitHub Environments)
16+
# -----------
17+
#
18+
# Environment (none)
19+
#
20+
# For automated deployment we expect the following in the environment: -
21+
#
22+
# (none)
23+
24+
425
on:
526
push:
627
branches:

.github/workflows/build-stable.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,35 @@
22
name: build and push stable
33

44
# Actions for an 'official' tag.
5-
6-
# An official tag is a 3-digit value (i.e. 'N.N.N').
5+
#
6+
# An official tag is a 2 or 3-digit value (i.e. 'N.N[.N]').
77
# We publish images using the tag as a tag and one using 'stable' as s tag.
88

9+
# -----------------
10+
# Control variables (GitHub Secrets)
11+
# -----------------
12+
#
13+
# At the GitHub 'organisation' or 'project' level you must have the following
14+
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
15+
#
16+
# DOCKERHUB_USERNAME
17+
# DOCKERHUB_TOKEN
18+
#
19+
# -----------
20+
# Environment (GitHub Environments)
21+
# -----------
22+
#
23+
# Environment (none)
24+
#
25+
# For automated deployment we expect the following in the environment: -
26+
#
27+
# (none)
28+
929
on:
1030
push:
1131
tags:
1232
- '[0-9]+.[0-9]+.[0-9]+'
33+
- '[0-9]+.[0-9]+'
1334

1435
jobs:
1536
push-stable:

.github/workflows/build-tag.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,35 @@
22
name: build and push tag
33

44
# Actions for any 'unofficial' tag.
5+
#
6+
# It's not an official tag if it's not formed from 2 or 3 digits
7+
# (i.e. is not 'N.N[.N]'). We publish images using the tag as a tag.
58

6-
# It's not an official tag if it's not formed from three digits
7-
# (i.e. is not 'N.N.N').
8-
# We publish images using the tag as a tag.
9+
# -----------------
10+
# Control variables (GitHub Secrets)
11+
# -----------------
12+
#
13+
# At the GitHub 'organisation' or 'project' level you must have the following
14+
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
15+
#
16+
# DOCKERHUB_USERNAME
17+
# DOCKERHUB_TOKEN
18+
#
19+
# -----------
20+
# Environment (GitHub Environments)
21+
# -----------
22+
#
23+
# Environment (none)
24+
#
25+
# For automated deployment we expect the following in the environment: -
26+
#
27+
# (none)
928

1029
on:
1130
push:
1231
tags:
1332
- '**'
33+
- '![0-9]+.[0-9]+'
1434
- '![0-9]+.[0-9]+.[0-9]+'
1535

1636
jobs:

.github/workflows/build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ name: build
66
# Here we build container images but don't push them
77
# and therefore do not require docker credentials.
88

9+
# -----------------
10+
# Control variables (GitHub Secrets)
11+
# -----------------
12+
#
13+
# At the GitHub 'organisation' or 'project' level you must have the following
14+
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
15+
#
16+
# (none)
17+
#
18+
# -----------
19+
# Environment (GitHub Environments)
20+
# -----------
21+
#
22+
# Environment (none)
23+
924
on:
1025
push:
1126
branches-ignore:

0 commit comments

Comments
 (0)