Skip to content

Commit cd65a52

Browse files
committed
chore: incrementing changes to matrix
1 parent 4454104 commit cd65a52

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/dockerhub-release-matrix.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,7 @@ jobs:
6161
6262
- name: Set PostgreSQL version environment variable
6363
run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.version }}" >> $GITHUB_ENV
64-
65-
- name: Generate common-nix.vars.pkr.hcl
66-
run: |
67-
nu -c 'let pg_version = (open ansible/vars.yml | get postgres_release | get $"postgres${{ matrix.version }}" | str trim)
68-
$"postgres-version = \"($pg_version)\"" | save common-nix.vars.pkr.hcl
69-
"" | save --append common-nix.vars.pkr.hcl'
70-
- id: settings
71-
run: |
72-
nu -c 'open common-nix.vars.pkr.hcl | str replace -a "[\\s\"]+" "" | save --append $env.GITHUB_OUTPUT'
64+
7365
- id: args
7466
run: |
7567
nu -c '
@@ -79,12 +71,12 @@ jobs:
7971
| each { |it| $"($it.name)=($it.item)" }
8072
| str join "\n"
8173
| save --append $env.GITHUB_OUTPUT
82-
'
74+
'
8375
build_release_image:
8476
needs: [prepare, build]
8577
strategy:
8678
matrix:
87-
include: ${{ fromJson(needs.prepare.outputs.matrix_config).include }}
79+
postgres: ${{ fromJson(needs.prepare.outputs.matrix_config).include }}
8880
arch: [amd64, arm64]
8981
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-latest' || 'ubuntu-latest-arm64' }}
9082
timeout-minutes: 180
@@ -104,7 +96,7 @@ jobs:
10496
- name: Get image tag
10597
run: |
10698
nu -c '
107-
let version = "${{ matrix.version }}"
99+
let version = "${{ matrix.postgres.version }}"
108100
let release_key = if ($version | str contains "orioledb") {
109101
$"postgres($version | str replace "-" "")"
110102
} else {
@@ -124,17 +116,7 @@ jobs:
124116
platforms: linux/${{ matrix.arch }}
125117
cache-from: type=gha,scope=${{ github.ref_name }}-latest-${{ matrix.arch }}
126118
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-latest-${{ matrix.arch }}
127-
file: ${{ matrix.dockerfile }}
128-
- name: Slack Notification
129-
if: ${{ failure() }}
130-
uses: rtCamp/action-slack-notify@v2
131-
env:
132-
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
133-
SLACK_USERNAME: "gha-failures-notifier"
134-
SLACK_COLOR: "danger"
135-
SLACK_MESSAGE: "Building Postgres ${{ matrix.arch }} image failed for version ${{ matrix.version }}"
136-
SLACK_FOOTER: ""
137-
119+
file: ${{ matrix.postgres.dockerfile }}
138120
merge_manifest:
139121
needs: [prepare, build, build_release_image]
140122
strategy:

0 commit comments

Comments
 (0)