Skip to content

Commit

Permalink
chore: make nightly image name readable (#604)
Browse files Browse the repository at this point in the history
* chore: update nightly name

* Update .github/workflows/dockerhub-publish-nightly.yml

Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>

---------

Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>
  • Loading branch information
jiacai2050 and ShiKaiWi authored Feb 2, 2023
1 parent aa306ec commit 639c2bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dockerhub-publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set datetime
- name: Set Environment Variables
run: |
echo "BUILD_DATE=$(TZ=':Asia/Shanghai' date '+%Y%m%d%H%M%S')" >> $GITHUB_ENV
echo "BUILD_DATE=$(TZ=':Asia/Shanghai' date '+%Y%m%d')" >> $GITHUB_ENV
# only first 7 chars of commit id
echo "COMMIT_ID=${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: Build and Push CeresDB Server Docker Image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ceresdb/ceresdb-server:nightly-${{ env.BUILD_DATE }}-${{ github.sha }}
tags: ceresdb/ceresdb-server:nightly-${{ env.BUILD_DATE }}-${{ env.COMMIT_ID }}

0 comments on commit 639c2bd

Please sign in to comment.