Try using env vars for the date?
This commit is contained in:
parent
7785f97183
commit
1663a9b1d8
1 changed files with 5 additions and 1 deletions
|
@ -24,6 +24,10 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: buildx-base
|
- name: buildx-base
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
- name: setup formatted date
|
||||||
|
run:
|
||||||
|
- echo $( date -I )
|
||||||
|
- echo FMT_DATE=$( date -I ) >> $GITHUB_ENV
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: https://github.com/docker/build-push-action@v6
|
uses: https://github.com/docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
@ -35,4 +39,4 @@ jobs:
|
||||||
build-args: |
|
build-args: |
|
||||||
PG_MAJOR_VERSION=${{ matrix.PG_MAJOR_VERSION }}
|
PG_MAJOR_VERSION=${{ matrix.PG_MAJOR_VERSION }}
|
||||||
DEB_RELEASE=${{ matrix.DEB_RELEASE }}
|
DEB_RELEASE=${{ matrix.DEB_RELEASE }}
|
||||||
FMT_DATE=${{ date 'YYYY-MM-DD' }}
|
FMT_DATE=${{ env.FMT_DATE }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue