1717 environment : deploy
1818 steps :
1919
20+ # https://github.com/orgs/community/discussions/47863
21+ - name : update packages
22+ run : |
23+ # sudo apt-mark hold grub-efi-amd64-signed
24+ sudo apt-get update --fix-missing
25+ sudo apt upgrade -y
26+
2027 - name : set up qemu
2128 uses : docker/setup-qemu-action@v2
2229
4855 fi
4956 echo "tag=${IMG}:${TAG}" >> $GITHUB_OUTPUT
5057 echo "git_commit=${GIT_COMMIT}" >> $GITHUB_OUTPUT
51-
58+
5259 - name : create 2.11-base tag
5360 id : base_tag_211
5461 run : |
@@ -67,65 +74,65 @@ jobs:
6774 with :
6875 file : ./images/ansible-operator/base.Dockerfile
6976 context : ./images/ansible-operator
70- platforms : linux/amd64,linux/arm64,linux/ppc64le,linux/ s390x
77+ platforms : linux/s390x
7178 push : true
7279 tags : ${{ steps.base_tag_29.outputs.tag }}
7380 build-args : |
7481 GIT_COMMIT=${{ steps.base_tag_29.outputs.git_commit }}
7582
76- - name : build and push ansible 2.11 dep image
77- uses : docker/build-push-action@v3
78- with :
79- file : ./images/ansible-operator-2.11-preview/base.Dockerfile
80- context : ./images/ansible-operator-2.11-preview
81- platforms : linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
82- push : true
83- tags : ${{ steps.base_tag_211.outputs.tag }}
84- build-args : |
85- GIT_COMMIT=${{ steps.base_tag_211.outputs.git_commit }}
83+ # - name: build and push ansible 2.11 dep image
84+ # uses: docker/build-push-action@v3
85+ # with:
86+ # file: ./images/ansible-operator-2.11-preview/base.Dockerfile
87+ # context: ./images/ansible-operator-2.11-preview
88+ # platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
89+ # push: true
90+ # tags: ${{ steps.base_tag_211.outputs.tag }}
91+ # build-args: |
92+ # GIT_COMMIT=${{ steps.base_tag_211.outputs.git_commit }}
8693
87- # This change will be staged and committed in the PR pushed below.
88- # The script below will fail if no change was made.
89- - name : update base of ansible-operator 2.9
90- id : update_29
91- run : |
92- set -ex
93- sed -i -E 's|FROM quay\.io/operator-framework/ansible-operator-base:.+|FROM ${{ steps.base_tag_29.outputs.tag }}|g' images/ansible-operator/Dockerfile
94- git diff --exit-code --quiet && echo "Failed to update images/ansible-operator/Dockerfile" && exit 1
95- REF="${{ github.event.ref }}"
96- echo "branch_name=${REF##*/}" >> $GITHUB_OUTPUT
97-
98- - name : create PR for ansible-operator 2.9 Dockerfile
99- uses : peter-evans/create-pull-request@v3
100- with :
101- title : " [${{ steps.update_29.outputs.branch_name }}] image(ansible-operator): bump base to ${{ steps.base_tag_29.outputs.tag }}"
102- commit-message : |
103- [${{ steps.update_29.outputs.branch_name }}] image(ansible-operator): bump base to ${{ steps.base_tag_29.outputs.tag }}
104-
105- Signed-off-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
106- body : " New ansible-operator-base image built by https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
107- delete-branch : true
108- branch-suffix : short-commit-hash
109-
110- # This change will be staged and committed in the PR pushed below.
111- # The script below will fail if no change was made.
112- - name : update base of ansible-operator-2.11-preview
113- id : update_211
114- run : |
115- set -ex
116- sed -i -E 's|FROM quay\.io/operator-framework/ansible-operator-2.11-preview-base:.+|FROM ${{ steps.base_tag_211.outputs.tag }}|g' images/ansible-operator-2.11-preview/Dockerfile
117- git diff --exit-code --quiet && echo "Failed to update images/ansible-operator-11-preview-base/Dockerfile" && exit 1
118- REF="${{ github.event.ref }}"
119- echo "branch_name=${REF##*/}" >> $GITHUB_OUTPUT
120-
121- - name : create PR for ansible-operator-2.11-preview Dockerfile
122- uses : peter-evans/create-pull-request@v3
123- with :
124- title : " [${{ steps.update_211.outputs.branch_name }}] image(ansible-operator-2.11-preview): bump base to ${{ steps.base_tag_211.outputs.tag }}"
125- commit-message : |
126- [${{ steps.update_211.outputs.branch_name }}] image(ansible-operator-2.11-preview): bump base to ${{ steps.base_tag_211.outputs.tag }}
127-
128- Signed-off-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
129- body : " New ansible-operator-2.11-preview-base image built by https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
130- delete-branch : true
131- branch-suffix : short-commit-hash
94+ # # This change will be staged and committed in the PR pushed below.
95+ # # The script below will fail if no change was made.
96+ # - name: update base of ansible-operator 2.9
97+ # id: update_29
98+ # run: |
99+ # set -ex
100+ # sed -i -E 's|FROM quay\.io/operator-framework/ansible-operator-base:.+|FROM ${{ steps.base_tag_29.outputs.tag }}|g' images/ansible-operator/Dockerfile
101+ # git diff --exit-code --quiet && echo "Failed to update images/ansible-operator/Dockerfile" && exit 1
102+ # REF="${{ github.event.ref }}"
103+ # echo "branch_name=${REF##*/}" >> $GITHUB_OUTPUT
104+
105+ # - name: create PR for ansible-operator 2.9 Dockerfile
106+ # uses: peter-evans/create-pull-request@v3
107+ # with:
108+ # title: "[${{ steps.update_29.outputs.branch_name }}] image(ansible-operator): bump base to ${{ steps.base_tag_29.outputs.tag }}"
109+ # commit-message: |
110+ # [${{ steps.update_29.outputs.branch_name }}] image(ansible-operator): bump base to ${{ steps.base_tag_29.outputs.tag }}
111+
112+ # Signed-off-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
113+ # body: "New ansible-operator-base image built by https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
114+ # delete-branch: true
115+ # branch-suffix: short-commit-hash
116+
117+ # # This change will be staged and committed in the PR pushed below.
118+ # # The script below will fail if no change was made.
119+ # - name: update base of ansible-operator-2.11-preview
120+ # id: update_211
121+ # run: |
122+ # set -ex
123+ # sed -i -E 's|FROM quay\.io/operator-framework/ansible-operator-2.11-preview-base:.+|FROM ${{ steps.base_tag_211.outputs.tag }}|g' images/ansible-operator-2.11-preview/Dockerfile
124+ # git diff --exit-code --quiet && echo "Failed to update images/ansible-operator-11-preview-base/Dockerfile" && exit 1
125+ # REF="${{ github.event.ref }}"
126+ # echo "branch_name=${REF##*/}" >> $GITHUB_OUTPUT
127+
128+ # - name: create PR for ansible-operator-2.11-preview Dockerfile
129+ # uses: peter-evans/create-pull-request@v3
130+ # with:
131+ # title: "[${{ steps.update_211.outputs.branch_name }}] image(ansible-operator-2.11-preview): bump base to ${{ steps.base_tag_211.outputs.tag }}"
132+ # commit-message: |
133+ # [${{ steps.update_211.outputs.branch_name }}] image(ansible-operator-2.11-preview): bump base to ${{ steps.base_tag_211.outputs.tag }}
134+
135+ # Signed-off-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
136+ # body: "New ansible-operator-2.11-preview-base image built by https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
137+ # delete-branch: true
138+ # branch-suffix: short-commit-hash
0 commit comments