Skip to content

Commit

Permalink
fix cron (#14)
Browse files Browse the repository at this point in the history
* fix cron

* year

* deno only

* to yaml
  • Loading branch information
dojyorin authored Mar 9, 2024
1 parent aa16ecf commit c576e3a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cron.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
],
"steps": [{
"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 '.results[].name' | grep -q ${{needs.fetch.outputs.deno_version}}"
"run": "echo deno_latest=$(! curl -Ls https://registry.hub.docker.com/v2/repositories/dojyorin/deno/tags?page_size=100 | yq '.results[].name' | grep -q ${{needs.fetch.outputs.deno_version}}; echo ${?}) >> ${GITHUB_OUTPUT}"
}]
},
"test": {
"if": "${{needs.compare.outputs.deno_latest == '1'}}",
"uses": "./.github/workflows/_test.yaml",
"with": {
"deno_version": "${{needs.fetch.outputs.deno_version}}"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
- fetch
steps:
- 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 ''.results[].name'' | grep -q ${{needs.fetch.outputs.deno_version}}'
run: echo deno_latest=$(! curl -Ls https://registry.hub.docker.com/v2/repositories/dojyorin/deno/tags?page_size=100 | yq '.results[].name' | grep -q ${{needs.fetch.outputs.deno_version}}; echo ${?}) >> ${GITHUB_OUTPUT}
test:
if: ${{needs.compare.outputs.deno_latest == '1'}}
uses: ./.github/workflows/_test.yaml
with:
deno_version: ${{needs.fetch.outputs.deno_version}}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Kazuki Ota
Copyright (c) 2024 Kazuki Ota

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/alpine.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:latest AS deno
ARG DENO_VERSION

RUN apk --update --no-cache add curl
RUN curl -Ls https://github.com/denoland/deno/releases/download/${DENO_VERSION}/deno-$(arch)-unknown-linux-gnu.zip | unzip -q -d /tmp -
RUN curl -Ls https://github.com/denoland/deno/releases/download/${DENO_VERSION}/deno-$(arch)-unknown-linux-gnu.zip | unzip -q -d /tmp - 'deno'

FROM gcr.io/distroless/cc-debian12:latest AS cc

Expand Down
2 changes: 1 addition & 1 deletion src/distroless.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:latest AS deno
ARG DENO_VERSION

RUN apk --update --no-cache add curl
RUN curl -Ls https://github.com/denoland/deno/releases/download/${DENO_VERSION}/deno-$(arch)-unknown-linux-gnu.zip | unzip -q -d /tmp -
RUN curl -Ls https://github.com/denoland/deno/releases/download/${DENO_VERSION}/deno-$(arch)-unknown-linux-gnu.zip | unzip -q -d /tmp - 'deno'

FROM gcr.io/distroless/cc-debian12:latest AS cc

Expand Down

0 comments on commit c576e3a

Please sign in to comment.