mirror of
https://github.com/cupcakearmy/docker-static.git
synced 2025-12-09 06:24:58 +00:00
use bun
This commit is contained in:
22
.github/workflows/cron.yml
vendored
22
.github/workflows/cron.yml
vendored
@@ -3,7 +3,7 @@ name: Matrix Cron Build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 3 * * 1"
|
||||
- cron: '0 3 * * 1'
|
||||
|
||||
jobs:
|
||||
tags:
|
||||
@@ -14,13 +14,11 @@ jobs:
|
||||
run:
|
||||
working-directory: tags
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: npm i
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: bun i
|
||||
- id: fetcher
|
||||
run: node .
|
||||
run: bun .
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -28,7 +26,7 @@ jobs:
|
||||
strategy:
|
||||
matrix: ${{fromJson(needs.tags.outputs.matrix)}}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
@@ -37,12 +35,12 @@ jobs:
|
||||
install: true
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
@@ -50,7 +48,7 @@ jobs:
|
||||
|
||||
- name: Docker Labels
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
cupcakearmy/static
|
||||
@@ -59,7 +57,7 @@ jobs:
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
Reference in New Issue
Block a user