Skip to content

Commit 4facf48

Browse files
committed
chore: Try if version was released before releasing docker version
1 parent 732c58e commit 4facf48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
run: ./scripts/build-docker.sh latest linux/amd64,linux/arm64 push
7272
env:
7373
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
74-
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_PASSWORD }}
74+
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
7575
VERSION: ${{ steps.version-after.outputs.VERSION }}
76-
GITHUB_SHA: ${{ github.event.workflow_run.head_sha }}
77-
BUILD_DATE: ${{ github.event.workflow_run.head_commit.timestamp }}
76+
GITHUB_SHA: ${{ github.event.workflow_run.head_sha || github.sha }}
77+
BUILD_DATE: ${{ github.event.workflow_run.run_started_at || github.event.workflow_run.head_commit.timestamp }}

0 commit comments

Comments
 (0)