|
19 | 19 | build_and_push:
|
20 | 20 | strategy:
|
21 | 21 | matrix:
|
22 |
| - version: ["12-bullseye", "14-debian11"] |
| 22 | + version: ["14-debian13"] |
23 | 23 |
|
24 | 24 | runs-on: ubuntu-latest
|
25 | 25 | steps:
|
@@ -119,106 +119,106 @@ jobs:
|
119 | 119 | tags: ${{ steps.meta.outputs.tags }}
|
120 | 120 | labels: ${{ steps.meta.outputs.labels }}
|
121 | 121 |
|
122 |
| - build_and_push_upgrade: |
123 |
| - needs: [build_and_push] |
124 |
| - strategy: |
125 |
| - matrix: |
126 |
| - version: ["12-to-14-upgrade"] |
127 |
| - |
128 |
| - runs-on: ubuntu-latest |
129 |
| - steps: |
130 |
| - - name: Checkout |
131 |
| - uses: actions/checkout@v3 |
132 |
| - |
133 |
| - - name: Get repo name |
134 |
| - id: image_name |
135 |
| - run: | |
136 |
| - sed -E -e 's/docker-//' -e 's/^/image_name=/' <<<"${{ github.repository }}" >> "$GITHUB_OUTPUT" |
137 |
| -
|
138 |
| - - name: Set up QEMU |
139 |
| - uses: docker/setup-qemu-action@v2 |
140 |
| - |
141 |
| - - name: Set up Docker Buildx |
142 |
| - id: buildx |
143 |
| - uses: docker/setup-buildx-action@v2 |
144 |
| - |
145 |
| - # The values provided to these two AWS steps are always the same for Panubo owned repos |
146 |
| - - name: Configure AWS Credentials |
147 |
| - if: github.event_name != 'pull_request' |
148 |
| - uses: aws-actions/configure-aws-credentials@v1-node16 |
149 |
| - with: |
150 |
| - role-to-assume: ${{ env.GITHUB_ROLE_ARN }} |
151 |
| - aws-region: us-east-1 |
152 |
| - |
153 |
| - - name: Login to ECR |
154 |
| - if: github.event_name != 'pull_request' |
155 |
| - uses: docker/login-action@v2 |
156 |
| - with: |
157 |
| - registry: public.ecr.aws |
158 |
| - |
159 |
| - - name: Login to Quay.io |
160 |
| - if: github.event_name != 'pull_request' |
161 |
| - uses: docker/login-action@v2 |
162 |
| - with: |
163 |
| - registry: quay.io |
164 |
| - username: ${{ secrets.PANUBUILD_QUAYIO_USERNAME }} |
165 |
| - password: ${{ secrets.PANUBUILD_QUAYIO_TOKEN }} |
166 |
| - |
167 |
| - - name: Setup BATS |
168 |
| - uses: mig4/setup-bats@v1 |
169 |
| - with: |
170 |
| - bats-version: 1.7.0 |
171 |
| - |
172 |
| - - name: Build and export to Docker |
173 |
| - uses: docker/build-push-action@v4 |
174 |
| - with: |
175 |
| - builder: ${{ steps.buildx.outputs.name }} |
176 |
| - context: ./${{ matrix.version }} |
177 |
| - cache-from: type=gha |
178 |
| - load: true |
179 |
| - tags: ${{ steps.image_name.outputs.image_name }}:test |
180 |
| - |
181 |
| - - name: Test |
182 |
| - run: | |
183 |
| - cd ${{ matrix.version }} |
184 |
| - make _ci_test |
185 |
| -
|
186 |
| - - name: Get image version(s) |
187 |
| - id: image_version |
188 |
| - # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings |
189 |
| - run: | |
190 |
| - cd ${{ matrix.version }} |
191 |
| - delimiter="$(openssl rand -hex 8)" |
192 |
| - echo "image_version<<${delimiter}" >> "${GITHUB_OUTPUT}" |
193 |
| - make _ci_version >> "${GITHUB_OUTPUT}" |
194 |
| - echo "${delimiter}" >> "${GITHUB_OUTPUT}" |
195 |
| -
|
196 |
| - - name: Docker meta |
197 |
| - id: meta |
198 |
| - uses: docker/metadata-action@v4 |
199 |
| - with: |
200 |
| - # list of Docker images to use as base name for tags |
201 |
| - images: | |
202 |
| - quay.io/${{ steps.image_name.outputs.image_name }} |
203 |
| - public.ecr.aws/${{ steps.image_name.outputs.image_name }} |
204 |
| - # generate Docker tags based on the following events/attributes |
205 |
| - tags: | |
206 |
| - ${{ steps.image_version.outputs.image_version }} |
207 |
| - # type=schedule |
208 |
| - # type=ref,event=branch |
209 |
| - # type=ref,event=pr |
210 |
| - # type=semver,pattern={{version}} |
211 |
| - # type=semver,pattern={{major}}.{{minor}} |
212 |
| - # type=sha |
213 |
| -
|
214 |
| - - name: Build and Push |
215 |
| - uses: docker/build-push-action@v3 |
216 |
| - with: |
217 |
| - builder: ${{ steps.buildx.outputs.name }} |
218 |
| - context: ./${{ matrix.version }} |
219 |
| - push: ${{ github.event_name != 'pull_request' }} |
220 |
| - cache-from: type=gha |
221 |
| - cache-to: type=gha,mode=max |
222 |
| - platforms: linux/amd64 # ,linux/arm64 # ARM builds are not supported, pglogical do not ship arm64 packages |
223 |
| - tags: ${{ steps.meta.outputs.tags }} |
224 |
| - labels: ${{ steps.meta.outputs.labels }} |
| 122 | + # build_and_push_upgrade: |
| 123 | + # needs: [build_and_push] |
| 124 | + # strategy: |
| 125 | + # matrix: |
| 126 | + # version: ["12-to-14-upgrade"] |
| 127 | + |
| 128 | + # runs-on: ubuntu-latest |
| 129 | + # steps: |
| 130 | + # - name: Checkout |
| 131 | + # uses: actions/checkout@v3 |
| 132 | + |
| 133 | + # - name: Get repo name |
| 134 | + # id: image_name |
| 135 | + # run: | |
| 136 | + # sed -E -e 's/docker-//' -e 's/^/image_name=/' <<<"${{ github.repository }}" >> "$GITHUB_OUTPUT" |
| 137 | + |
| 138 | + # - name: Set up QEMU |
| 139 | + # uses: docker/setup-qemu-action@v2 |
| 140 | + |
| 141 | + # - name: Set up Docker Buildx |
| 142 | + # id: buildx |
| 143 | + # uses: docker/setup-buildx-action@v2 |
| 144 | + |
| 145 | + # # The values provided to these two AWS steps are always the same for Panubo owned repos |
| 146 | + # - name: Configure AWS Credentials |
| 147 | + # if: github.event_name != 'pull_request' |
| 148 | + # uses: aws-actions/configure-aws-credentials@v1-node16 |
| 149 | + # with: |
| 150 | + # role-to-assume: ${{ env.GITHUB_ROLE_ARN }} |
| 151 | + # aws-region: us-east-1 |
| 152 | + |
| 153 | + # - name: Login to ECR |
| 154 | + # if: github.event_name != 'pull_request' |
| 155 | + # uses: docker/login-action@v2 |
| 156 | + # with: |
| 157 | + # registry: public.ecr.aws |
| 158 | + |
| 159 | + # - name: Login to Quay.io |
| 160 | + # if: github.event_name != 'pull_request' |
| 161 | + # uses: docker/login-action@v2 |
| 162 | + # with: |
| 163 | + # registry: quay.io |
| 164 | + # username: ${{ secrets.PANUBUILD_QUAYIO_USERNAME }} |
| 165 | + # password: ${{ secrets.PANUBUILD_QUAYIO_TOKEN }} |
| 166 | + |
| 167 | + # - name: Setup BATS |
| 168 | + # uses: mig4/setup-bats@v1 |
| 169 | + # with: |
| 170 | + # bats-version: 1.7.0 |
| 171 | + |
| 172 | + # - name: Build and export to Docker |
| 173 | + # uses: docker/build-push-action@v4 |
| 174 | + # with: |
| 175 | + # builder: ${{ steps.buildx.outputs.name }} |
| 176 | + # context: ./${{ matrix.version }} |
| 177 | + # cache-from: type=gha |
| 178 | + # load: true |
| 179 | + # tags: ${{ steps.image_name.outputs.image_name }}:test |
| 180 | + |
| 181 | + # - name: Test |
| 182 | + # run: | |
| 183 | + # cd ${{ matrix.version }} |
| 184 | + # make _ci_test |
| 185 | + |
| 186 | + # - name: Get image version(s) |
| 187 | + # id: image_version |
| 188 | + # # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings |
| 189 | + # run: | |
| 190 | + # cd ${{ matrix.version }} |
| 191 | + # delimiter="$(openssl rand -hex 8)" |
| 192 | + # echo "image_version<<${delimiter}" >> "${GITHUB_OUTPUT}" |
| 193 | + # make _ci_version >> "${GITHUB_OUTPUT}" |
| 194 | + # echo "${delimiter}" >> "${GITHUB_OUTPUT}" |
| 195 | + |
| 196 | + # - name: Docker meta |
| 197 | + # id: meta |
| 198 | + # uses: docker/metadata-action@v4 |
| 199 | + # with: |
| 200 | + # # list of Docker images to use as base name for tags |
| 201 | + # images: | |
| 202 | + # quay.io/${{ steps.image_name.outputs.image_name }} |
| 203 | + # public.ecr.aws/${{ steps.image_name.outputs.image_name }} |
| 204 | + # # generate Docker tags based on the following events/attributes |
| 205 | + # tags: | |
| 206 | + # ${{ steps.image_version.outputs.image_version }} |
| 207 | + # # type=schedule |
| 208 | + # # type=ref,event=branch |
| 209 | + # # type=ref,event=pr |
| 210 | + # # type=semver,pattern={{version}} |
| 211 | + # # type=semver,pattern={{major}}.{{minor}} |
| 212 | + # # type=sha |
| 213 | + |
| 214 | + # - name: Build and Push |
| 215 | + # uses: docker/build-push-action@v3 |
| 216 | + # with: |
| 217 | + # builder: ${{ steps.buildx.outputs.name }} |
| 218 | + # context: ./${{ matrix.version }} |
| 219 | + # push: ${{ github.event_name != 'pull_request' }} |
| 220 | + # cache-from: type=gha |
| 221 | + # cache-to: type=gha,mode=max |
| 222 | + # platforms: linux/amd64 # ,linux/arm64 # ARM builds are not supported, pglogical do not ship arm64 packages |
| 223 | + # tags: ${{ steps.meta.outputs.tags }} |
| 224 | + # labels: ${{ steps.meta.outputs.labels }} |
0 commit comments