We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e69fed0 commit 1f5fd33Copy full SHA for 1f5fd33
.github/workflows/publish-image.yaml
@@ -1,8 +1,8 @@
1
name: Build and Push Docker Image
2
3
on:
4
- #schedule:
5
- # - cron: '0 0 * * *' # Runs daily at midnight UTC
+ schedule:
+ - cron: '0 0 * * 0' # Runs on every Sunday at midnight UTC
6
workflow_dispatch:
7
8
env:
@@ -49,7 +49,7 @@ jobs:
49
# This uses the tag names, and excludes the "latest" tag
50
- name: Get latest published Docker image version
51
run: |
52
- DOCKER_VERSION=$(curl -s "https://registry.hub.docker.com/v2/repositories/bluet/jottacloud/tags" | \
+ DOCKER_VERSION=$(curl -s "https://registry.hub.docker.com/v2/repositories/${{ env.DOCKER_REPO }}/tags" | \
53
jq -r '.results[].name' | grep -v '^latest$' | awk -F '-' '{print $1}' | sort -V | tail -n1)
54
echo "DOCKER_VERSION=$DOCKER_VERSION" >> $GITHUB_ENV
55
0 commit comments