4
4
push :
5
5
paths :
6
6
- " README.md"
7
+ - " README-containers.md"
7
8
- " .github/workflows/container_description.yml"
8
9
branches : [ main, master ]
9
10
17
18
if : github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
18
19
steps :
19
20
- name : git checkout
20
- uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
21
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
21
22
- name : Set docker hub repo name
22
23
run : echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
23
24
- name : Push README to Dockerhub
@@ -29,15 +30,17 @@ jobs:
29
30
destination_container_repo : ${{ env.DOCKER_REPO_NAME }}
30
31
provider : dockerhub
31
32
short_description : ${{ env.DOCKER_REPO_NAME }}
32
- readme_file : ' README.md'
33
+ # Empty string results in README-containers.md being pushed if it
34
+ # exists. Otherwise, README.md is pushed.
35
+ readme_file : ' '
33
36
34
37
PushQuayIoReadme :
35
38
runs-on : ubuntu-latest
36
39
name : Push README to quay.io
37
40
if : github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
38
41
steps :
39
42
- name : git checkout
40
- uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
43
+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
41
44
- name : Set quay.io org name
42
45
run : echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
43
46
- name : Set quay.io repo name
49
52
with :
50
53
destination_container_repo : ${{ env.DOCKER_REPO_NAME }}
51
54
provider : quay
52
- readme_file : ' README.md'
55
+ # Empty string results in README-containers.md being pushed if it
56
+ # exists. Otherwise, README.md is pushed.
57
+ readme_file : ' '
0 commit comments