Skip to content

Commit 58d2cb9

Browse files
authored
Merge pull request #236 from ashwat287/BuildTimeMissing
fix(ci): fallback to github.run_started_at if meta.outputs.created is unset for BUILD_DATE
2 parents f0681d7 + 23d1ed8 commit 58d2cb9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ jobs:
126126
type=semver,pattern={{version}}
127127
type=edge
128128
type=ref,event=pr
129-
labels: |
130-
org.opencontainers.image.created=auto
131129
132130
- name: Build and push image
133131
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
@@ -142,7 +140,7 @@ jobs:
142140
build-args: |
143141
GIT_TAG=${{ github.ref_name }}
144142
GIT_COMMIT=${{ github.sha }}
145-
BUILD_DATE=${{ steps.meta.outputs.created }}
143+
BUILD_DATE=${{ steps.meta.outputs.created || github.event.repository.updated_at || format('YYYY-MM-DD') }}
146144
secret-envs: |
147145
telemetry_api_key=TELEMETRY_API_KEY
148146
telemetry_endpoint=TELEMETRY_ENDPOINT

0 commit comments

Comments
 (0)