32 lines
848 B
YAML
32 lines
848 B
YAML
on:
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- '.forgejo/workflows/*'
|
|
- 'Dockerfile'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: dind
|
|
strategy:
|
|
matrix:
|
|
node-version: [ "20", "22", "23" ]
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: forgejo.neshweb.net
|
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
|
- name: Push to Package Registry
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
build-args: |
|
|
NODE_VERSION=${{ matrix.node-version }}
|
|
tags: forgejo.neshweb.net/ci-docker-images/node-chromium:${{ matrix.node-version }}
|