Skip to content

Commit

Permalink
test docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Apr 29, 2024
1 parent 431ae51 commit bcf36c1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish-nightly-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ name: Publish Nightly Docker image

on:
workflow_dispatch:
schedule:
- cron: '10 20 * * *'
# schedule:
# - cron: '10 20 * * *'

env:
REGISTRY: ghcr.io
REGISTRY: docker.io
# REGISTRY: ghcr.io
IMAGE_NAME: apache/horaedb-server

jobs:
docker:
if: github.repository_owner == 'apache'
# if: github.repository_owner == 'apache'
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -43,7 +44,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set Environment Variables
run: |
echo "BUILD_DATE=$(TZ=':Asia/Shanghai' date '+%Y%m%d')" >> $GITHUB_ENV
Expand Down

0 comments on commit bcf36c1

Please sign in to comment.