Skip to content

Commit 5d2bdda

Browse files
authored
chore: automated images json update (#689)
Signed-off-by: Kevin Carter <[email protected]>
1 parent 74f3b6e commit 5d2bdda

9 files changed

+388
-0
lines changed

Diff for: .github/workflows/release-ceilometer.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ env:
3737
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
3838
jobs:
3939
build-and-push-image:
40+
outputs:
41+
MY_DATE: ${{ steps.mydate.outputs.MY_DATE }}
42+
MY_CONTAINER: ${{ steps.mycontainer.outputs.MY_CONTAINER }}
4043
runs-on: ubuntu-latest
4144
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
4245
permissions:
@@ -79,3 +82,43 @@ jobs:
7982
labels: ${{ steps.meta.outputs.labels }}
8083
build-args: |
8184
VERSION=${{ github.event.inputs.buildVersion || env.DEF_BUILD_VERSION}}
85+
- name: Dynamically set MY_CONTAINER output option
86+
id: mycontainer
87+
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nova-efi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
88+
- name: Dynamically set MY_DATE output option
89+
id: mydate
90+
run: echo "MY_DATE=${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
91+
92+
change-original-images:
93+
runs-on: ubuntu-latest
94+
needs: [build-and-push-image]
95+
permissions:
96+
contents: write
97+
pull-requests: write
98+
steps:
99+
- name: Checkout repository
100+
uses: actions/checkout@v4
101+
- name: Dynamically update the original images file
102+
run: jq '. + ["${{ needs.build-and-push-image.outputs.MY_CONTAINER }}"] | sort' .original-images.json | tee .original-images.json.new
103+
- name: Rewrite original images file
104+
run: mv .original-images.json.new .original-images.json
105+
- name: Create Pull Request
106+
id: cpr
107+
uses: peter-evans/create-pull-request@v7
108+
with:
109+
commit-message: Update original images with new container
110+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
111+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
112+
signoff: false
113+
branch: ${{ needs.build-and-push-image.outputs.MY_DATE }}
114+
sign-commits: true
115+
delete-branch: true
116+
title: 'chore: Update original images'
117+
body: |
118+
Update container image
119+
- Updated original image file with container ${{needs.build-and-push-image.outputs.MY_CONTAINER}}
120+
change request Auto-generated
121+
labels: |
122+
container images
123+
automated pr
124+
draft: false

Diff for: .github/workflows/release-cinder-netapp.yml

+43
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ env:
2424
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
2525
jobs:
2626
build-and-push-image:
27+
outputs:
28+
MY_DATE: ${{ steps.mydate.outputs.MY_DATE }}
29+
MY_CONTAINER: ${{ steps.mycontainer.outputs.MY_CONTAINER }}
2730
runs-on: ubuntu-latest
2831
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
2932
permissions:
@@ -66,3 +69,43 @@ jobs:
6669
labels: ${{ steps.meta.outputs.labels }}
6770
build-args: |
6871
VERSION=${{ github.event.inputs.imageTag }}
72+
- name: Dynamically set MY_CONTAINER output option
73+
id: mycontainer
74+
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nova-efi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
75+
- name: Dynamically set MY_DATE output option
76+
id: mydate
77+
run: echo "MY_DATE=${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
78+
79+
change-original-images:
80+
runs-on: ubuntu-latest
81+
needs: [build-and-push-image]
82+
permissions:
83+
contents: write
84+
pull-requests: write
85+
steps:
86+
- name: Checkout repository
87+
uses: actions/checkout@v4
88+
- name: Dynamically update the original images file
89+
run: jq '. + ["${{ needs.build-and-push-image.outputs.MY_CONTAINER }}"] | sort' .original-images.json | tee .original-images.json.new
90+
- name: Rewrite original images file
91+
run: mv .original-images.json.new .original-images.json
92+
- name: Create Pull Request
93+
id: cpr
94+
uses: peter-evans/create-pull-request@v7
95+
with:
96+
commit-message: Update original images with new container
97+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
98+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
99+
signoff: false
100+
branch: ${{ needs.build-and-push-image.outputs.MY_DATE }}
101+
sign-commits: true
102+
delete-branch: true
103+
title: 'chore: Update original images'
104+
body: |
105+
Update container image
106+
- Updated original image file with container ${{needs.build-and-push-image.outputs.MY_CONTAINER}}
107+
change request Auto-generated
108+
labels: |
109+
container images
110+
automated pr
111+
draft: false

Diff for: .github/workflows/release-gnocchi.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ env:
3838
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
3939
jobs:
4040
build-and-push-image:
41+
outputs:
42+
MY_DATE: ${{ steps.mydate.outputs.MY_DATE }}
43+
MY_CONTAINER: ${{ steps.mycontainer.outputs.MY_CONTAINER }}
4144
runs-on: ubuntu-latest
4245
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
4346
permissions:
@@ -80,3 +83,43 @@ jobs:
8083
labels: ${{ steps.meta.outputs.labels }}
8184
build-args: |
8285
VERSION=${{ github.event.inputs.buildVersion || env.DEF_BUILD_VERSION}}
86+
- name: Dynamically set MY_CONTAINER output option
87+
id: mycontainer
88+
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nova-efi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
89+
- name: Dynamically set MY_DATE output option
90+
id: mydate
91+
run: echo "MY_DATE=${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
92+
93+
change-original-images:
94+
runs-on: ubuntu-latest
95+
needs: [build-and-push-image]
96+
permissions:
97+
contents: write
98+
pull-requests: write
99+
steps:
100+
- name: Checkout repository
101+
uses: actions/checkout@v4
102+
- name: Dynamically update the original images file
103+
run: jq '. + ["${{ needs.build-and-push-image.outputs.MY_CONTAINER }}"] | sort' .original-images.json | tee .original-images.json.new
104+
- name: Rewrite original images file
105+
run: mv .original-images.json.new .original-images.json
106+
- name: Create Pull Request
107+
id: cpr
108+
uses: peter-evans/create-pull-request@v7
109+
with:
110+
commit-message: Update original images with new container
111+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
112+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
113+
signoff: false
114+
branch: ${{ needs.build-and-push-image.outputs.MY_DATE }}
115+
sign-commits: true
116+
delete-branch: true
117+
title: 'chore: Update original images'
118+
body: |
119+
Update container image
120+
- Updated original image file with container ${{needs.build-and-push-image.outputs.MY_CONTAINER}}
121+
change request Auto-generated
122+
labels: |
123+
container images
124+
automated pr
125+
draft: false

Diff for: .github/workflows/release-heat-rxt.yml

+43
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ env:
2828
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
2929
jobs:
3030
build-and-push-image:
31+
outputs:
32+
MY_DATE: ${{ steps.mydate.outputs.MY_DATE }}
33+
MY_CONTAINER: ${{ steps.mycontainer.outputs.MY_CONTAINER }}
3134
runs-on: ubuntu-latest
3235
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
3336
permissions:
@@ -70,3 +73,43 @@ jobs:
7073
labels: ${{ steps.meta.outputs.labels }}
7174
build-args: |
7275
VERSION=${{ github.event.inputs.imageTag || env.DEF_TAG_NAME }}
76+
- name: Dynamically set MY_CONTAINER output option
77+
id: mycontainer
78+
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nova-efi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
79+
- name: Dynamically set MY_DATE output option
80+
id: mydate
81+
run: echo "MY_DATE=${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
82+
83+
change-original-images:
84+
runs-on: ubuntu-latest
85+
needs: [build-and-push-image]
86+
permissions:
87+
contents: write
88+
pull-requests: write
89+
steps:
90+
- name: Checkout repository
91+
uses: actions/checkout@v4
92+
- name: Dynamically update the original images file
93+
run: jq '. + ["${{ needs.build-and-push-image.outputs.MY_CONTAINER }}"] | sort' .original-images.json | tee .original-images.json.new
94+
- name: Rewrite original images file
95+
run: mv .original-images.json.new .original-images.json
96+
- name: Create Pull Request
97+
id: cpr
98+
uses: peter-evans/create-pull-request@v7
99+
with:
100+
commit-message: Update original images with new container
101+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
102+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
103+
signoff: false
104+
branch: ${{ needs.build-and-push-image.outputs.MY_DATE }}
105+
sign-commits: true
106+
delete-branch: true
107+
title: 'chore: Update original images'
108+
body: |
109+
Update container image
110+
- Updated original image file with container ${{needs.build-and-push-image.outputs.MY_CONTAINER}}
111+
change request Auto-generated
112+
labels: |
113+
container images
114+
automated pr
115+
draft: false

Diff for: .github/workflows/release-horizon-rxt.yml

+43
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ env:
3434
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
3535
jobs:
3636
build-and-push-image:
37+
outputs:
38+
MY_DATE: ${{ steps.mydate.outputs.MY_DATE }}
39+
MY_CONTAINER: ${{ steps.mycontainer.outputs.MY_CONTAINER }}
3740
runs-on: ubuntu-latest
3841
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
3942
permissions:
@@ -73,3 +76,43 @@ jobs:
7376
build-args: |
7477
VERSION=${{ github.event.inputs.imageTag }}
7578
PLUGIN_VERSION=${{ github.event.inputs.pluginTag }}
79+
- name: Dynamically set MY_CONTAINER output option
80+
id: mycontainer
81+
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nova-efi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
82+
- name: Dynamically set MY_DATE output option
83+
id: mydate
84+
run: echo "MY_DATE=${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
85+
86+
change-original-images:
87+
runs-on: ubuntu-latest
88+
needs: [build-and-push-image]
89+
permissions:
90+
contents: write
91+
pull-requests: write
92+
steps:
93+
- name: Checkout repository
94+
uses: actions/checkout@v4
95+
- name: Dynamically update the original images file
96+
run: jq '. + ["${{ needs.build-and-push-image.outputs.MY_CONTAINER }}"] | sort' .original-images.json | tee .original-images.json.new
97+
- name: Rewrite original images file
98+
run: mv .original-images.json.new .original-images.json
99+
- name: Create Pull Request
100+
id: cpr
101+
uses: peter-evans/create-pull-request@v7
102+
with:
103+
commit-message: Update original images with new container
104+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
105+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
106+
signoff: false
107+
branch: ${{ needs.build-and-push-image.outputs.MY_DATE }}
108+
sign-commits: true
109+
delete-branch: true
110+
title: 'chore: Update original images'
111+
body: |
112+
Update container image
113+
- Updated original image file with container ${{needs.build-and-push-image.outputs.MY_CONTAINER}}
114+
change request Auto-generated
115+
labels: |
116+
container images
117+
automated pr
118+
draft: false

Diff for: .github/workflows/release-neutron-oslodb.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ env:
3434
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
3535
jobs:
3636
build-and-push-image:
37+
outputs:
38+
MY_DATE: ${{ steps.mydate.outputs.MY_DATE }}
39+
MY_CONTAINER: ${{ steps.mycontainer.outputs.MY_CONTAINER }}
3740
runs-on: ubuntu-latest
3841
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
3942
permissions:
@@ -73,3 +76,43 @@ jobs:
7376
build-args: |
7477
VERSION=${{ github.event.inputs.imageTag }}
7578
PLUGIN_VERSION=${{ github.event.inputs.pluginTag }}
79+
- name: Dynamically set MY_CONTAINER output option
80+
id: mycontainer
81+
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nova-efi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
82+
- name: Dynamically set MY_DATE output option
83+
id: mydate
84+
run: echo "MY_DATE=${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
85+
86+
change-original-images:
87+
runs-on: ubuntu-latest
88+
needs: [build-and-push-image]
89+
permissions:
90+
contents: write
91+
pull-requests: write
92+
steps:
93+
- name: Checkout repository
94+
uses: actions/checkout@v4
95+
- name: Dynamically update the original images file
96+
run: jq '. + ["${{ needs.build-and-push-image.outputs.MY_CONTAINER }}"] | sort' .original-images.json | tee .original-images.json.new
97+
- name: Rewrite original images file
98+
run: mv .original-images.json.new .original-images.json
99+
- name: Create Pull Request
100+
id: cpr
101+
uses: peter-evans/create-pull-request@v7
102+
with:
103+
commit-message: Update original images with new container
104+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
105+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
106+
signoff: false
107+
branch: ${{ needs.build-and-push-image.outputs.MY_DATE }}
108+
sign-commits: true
109+
delete-branch: true
110+
title: 'chore: Update original images'
111+
body: |
112+
Update container image
113+
- Updated original image file with container ${{needs.build-and-push-image.outputs.MY_CONTAINER}}
114+
change request Auto-generated
115+
labels: |
116+
container images
117+
automated pr
118+
draft: false

Diff for: .github/workflows/release-nova-oslodb.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ env:
3434
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
3535
jobs:
3636
build-and-push-image:
37+
outputs:
38+
MY_DATE: ${{ steps.mydate.outputs.MY_DATE }}
39+
MY_CONTAINER: ${{ steps.mycontainer.outputs.MY_CONTAINER }}
3740
runs-on: ubuntu-latest
3841
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
3942
permissions:
@@ -73,3 +76,44 @@ jobs:
7376
build-args: |
7477
VERSION=${{ github.event.inputs.imageTag }}
7578
PLUGIN_VERSION=${{ github.event.inputs.pluginTag }}
79+
- name: Dynamically set MY_CONTAINER output option
80+
id: mycontainer
81+
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nova-efi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
82+
- name: Dynamically set MY_DATE output option
83+
id: mydate
84+
run: echo "MY_DATE=${{ env.MY_DATE }}" >> $GITHUB_OUTPUT
85+
86+
87+
change-original-images:
88+
runs-on: ubuntu-latest
89+
needs: [build-and-push-image]
90+
permissions:
91+
contents: write
92+
pull-requests: write
93+
steps:
94+
- name: Checkout repository
95+
uses: actions/checkout@v4
96+
- name: Dynamically update the original images file
97+
run: jq '. + ["${{ needs.build-and-push-image.outputs.MY_CONTAINER }}"] | sort' .original-images.json | tee .original-images.json.new
98+
- name: Rewrite original images file
99+
run: mv .original-images.json.new .original-images.json
100+
- name: Create Pull Request
101+
id: cpr
102+
uses: peter-evans/create-pull-request@v7
103+
with:
104+
commit-message: Update original images with new container
105+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
106+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
107+
signoff: false
108+
branch: ${{ needs.build-and-push-image.outputs.MY_DATE }}
109+
sign-commits: true
110+
delete-branch: true
111+
title: 'chore: Update original images'
112+
body: |
113+
Update container image
114+
- Updated original image file with container ${{needs.build-and-push-image.outputs.MY_CONTAINER}}
115+
change request Auto-generated
116+
labels: |
117+
container images
118+
automated pr
119+
draft: false

0 commit comments

Comments
 (0)