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