diff --git a/.github/workflows/push.json b/.github/workflows/push.json index 2b98a3c..8f53057 100644 --- a/.github/workflows/push.json +++ b/.github/workflows/push.json @@ -2,7 +2,7 @@ "name": "push", "on": { "schedule": [{ - "cron": "0 12 * * *" + "cron": "0 6 * * *" }] }, "jobs": { @@ -19,13 +19,16 @@ }, { "name": "compare dockerhub tag and deno latest version", "run": "curl -Ls https://registry.hub.docker.com/v2/repositories/dojyorin/deno/tags?page_size=100 | yq '\"v\" + .results[].name' | grep -q ${{steps.deno_v.outputs.value}}" + }, { + "if": "${{failure()}}", + "name": "detect latest version - ${{steps.deno_v.outputs.value}}", + "run": "true" }] }, "build": { "name": "build: ${{matrix.distro}}", "runs-on": "ubuntu-latest", "needs": "fetch", - "if": "${{failure()}}", "strategy": { "fail-fast": true, "matrix": { diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 1d45f0f..3086d89 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -1,7 +1,7 @@ name: push on: schedule: - - cron: 0 12 * * * + - cron: 0 6 * * * jobs: fetch: name: 'fetch: deno latest version' @@ -14,11 +14,13 @@ jobs: run: echo value=$(curl -Ls https://api.github.com/repos/denoland/deno/releases/latest | yq '.tag_name') >> ${{github.output}} - name: compare dockerhub tag and deno latest version run: curl -Ls https://registry.hub.docker.com/v2/repositories/dojyorin/deno/tags?page_size=100 | yq '"v" + .results[].name' | grep -q ${{steps.deno_v.outputs.value}} + - if: ${{failure()}} + name: detect latest version - ${{steps.deno_v.outputs.value}} + run: "true" build: name: 'build: ${{matrix.distro}}' runs-on: ubuntu-latest needs: fetch - if: ${{failure()}} strategy: fail-fast: true matrix: diff --git a/README.md b/README.md index 30638a4..26cfc4e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The simple and small deno docker image. -This image is published on DockerHub and synchronized with latest version of [denoland/deno](https://github.com/denoland/deno) every day at `12:00` UTC. +This image is published on DockerHub and synchronized with latest version of [denoland/deno](https://github.com/denoland/deno) every day at `06:00` UTC. - Distroless: [dojyorin/deno:distroless](https://hub.docker.com/r/dojyorin/deno/tags?name=distroless) (default) - Alpine: [dojyorin/deno:alpine](https://hub.docker.com/r/dojyorin/deno/tags?name=alpine) @@ -22,7 +22,7 @@ Easy to introduce in your project. **As single image** ```sh # Run REPL. -docker run -it --init --rm denoland/deno:latest +docker run --init --rm -it denoland/deno:latest # Run script. docker run --init --rm -p 0.0.0.0:80:8080 -v /project:/project:ro denoland/deno:latest run /project/main.ts @@ -33,8 +33,8 @@ docker run --init --rm -p 0.0.0.0:80:8080 -v /project:/project:ro denoland/deno: name: my_project services: image: dojyorin/deno:latest - restart: always init: true + restart: always ports: - 0.0.0.0:80:8000 volumes: