fix: Source epoch causes issues with caching
This commit is contained in:
@@ -27,12 +27,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set timestamp and release version
|
- name: Setup env
|
||||||
run: |
|
run: |
|
||||||
echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
|
||||||
git fetch --prune --unshallow --tags --force
|
git fetch --prune --unshallow --tags --force
|
||||||
echo "RELEASE_VERSION=$(git describe --always --dirty='--modified')" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=$(git describe --always --dirty='--modified')" >> $GITHUB_ENV
|
||||||
cat $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -79,7 +77,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TAG_BASE: ${{ env.OCI_REPO }}
|
TAG_BASE: ${{ env.OCI_REPO }}
|
||||||
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
|
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
|
||||||
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
|
|
||||||
|
|
||||||
- name: Output images
|
- name: Output images
|
||||||
id: images
|
id: images
|
||||||
|
|||||||
Reference in New Issue
Block a user