Skip to content

Commit 1f5fd33

Browse files
committed
Update publish-image.yaml
1 parent e69fed0 commit 1f5fd33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-image.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Build and Push Docker Image
22

33
on:
4-
#schedule:
5-
# - cron: '0 0 * * *' # Runs daily at midnight UTC
4+
schedule:
5+
- cron: '0 0 * * 0' # Runs on every Sunday at midnight UTC
66
workflow_dispatch:
77

88
env:
@@ -49,7 +49,7 @@ jobs:
4949
# This uses the tag names, and excludes the "latest" tag
5050
- name: Get latest published Docker image version
5151
run: |
52-
DOCKER_VERSION=$(curl -s "https://registry.hub.docker.com/v2/repositories/bluet/jottacloud/tags" | \
52+
DOCKER_VERSION=$(curl -s "https://registry.hub.docker.com/v2/repositories/${{ env.DOCKER_REPO }}/tags" | \
5353
jq -r '.results[].name' | grep -v '^latest$' | awk -F '-' '{print $1}' | sort -V | tail -n1)
5454
echo "DOCKER_VERSION=$DOCKER_VERSION" >> $GITHUB_ENV
5555

0 commit comments

Comments
 (0)