Skip to content

Commit

Permalink
sync json.
Browse files Browse the repository at this point in the history
  • Loading branch information
dojyorin committed Mar 12, 2024
1 parent 65f7420 commit 43a9056
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
distro:
- alpine
- distroless
arch:
- linux/amd64
- linux/arm64
env:
tag_f: dojyorin/deno:${{matrix.distro}}-${{inputs.deno_version}}
tag_d: dojyorin/deno:${{matrix.distro}}
Expand All @@ -37,7 +40,7 @@ jobs:
pull: true
no-cache: true
tags: ${{env.tag_f}},${{env.tag_d}}${{matrix.distro == 'distroless' && format(',{0},{1}', env.tag_v, env.tag_l) || ''}}
platforms: linux/amd64
platforms: ${{matrix.arch}}
context: '{{defaultContext}}:./src'
file: ${{matrix.distro}}.dockerfile
build-args: DENO_VERSION=${{inputs.deno_version}}
5 changes: 4 additions & 1 deletion .github/workflows/_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
distro:
- alpine
- distroless
arch:
- linux/amd64
- linux/arm64
steps:
- name: clone repository
uses: actions/checkout@v4
Expand All @@ -26,7 +29,7 @@ jobs:
pull: true
no-cache: true
tags: ${{github.sha}}
platforms: linux/amd64
platforms: ${{matrix.arch}}
context: '{{defaultContext}}:./src'
file: ${{matrix.distro}}.dockerfile
build-args: DENO_VERSION=${{inputs.deno_version}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cron.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: cron
on:
schedule:
- cron: 0 6 * * *
- cron: 0 0 * * *
jobs:
fetch:
uses: ./.github/workflows/_fetch.yaml
Expand All @@ -12,7 +12,7 @@ jobs:
- fetch
steps:
- name: compare dockerhub tag and deno latest 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}
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
Expand Down

0 comments on commit 43a9056

Please sign in to comment.