Skip to content

Commit

Permalink
env is not available for a matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Dec 13, 2024
1 parent 321d0e9 commit 09535f3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
- cron: "0 0 * * 0"

env:
# renovate: datasource=docker depName=alpine versioning=docker
ALPINE_VERSION: "3.20"
LATEST_POSTGRES_VERSION: "17"

jobs:
Expand Down Expand Up @@ -77,13 +75,14 @@ jobs:
type=registry,ref=pgautoupgrade/pgautoupgrade:build-15-${{ matrix.operating_system.flavor }}
type=registry,ref=pgautoupgrade/pgautoupgrade:build-16-${{ matrix.operating_system.flavor }}
type=registry,ref=pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}
type=registry,ref=pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.version }}
type=registry,ref=pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.OS_VERSION }}
strategy:
matrix:
operating_system:
- flavor: "alpine"
version: "${{ env.ALPINE_VERSION }}"
# renovate: datasource=docker depName=alpine versioning=docker
OS_VERSION: "3.20"
- flavor: "bookworm"
pg_target:
- "12"
Expand Down Expand Up @@ -114,7 +113,7 @@ jobs:
load: true
tags: |
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.version }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.OS_VERSION }}"
build-args: |
"PGTARGET=${{ matrix.pg_target }}"
cache-to: type=inline
Expand Down Expand Up @@ -147,7 +146,7 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.version }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.OS_VERSION }}"
build-args: |
"PGTARGET=${{ matrix.pg_target }}"
push: true
Expand Down

0 comments on commit 09535f3

Please sign in to comment.