yolks/.github/workflows/nodejs.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2021-05-15 21:29:47 +02:00
name: build nodejs
on:
workflow_dispatch:
2021-05-15 21:29:47 +02:00
schedule:
- cron: "0 0 1 * *"
push:
branches:
- master
paths:
2021-05-15 21:29:47 +02:00
- nodejs/*
jobs:
push:
name: "yolks:nodejs_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- 12
- 14
- 15
- 16
2021-11-15 15:27:10 +01:00
- 17
2022-04-24 21:14:19 +02:00
- 18
- 20
steps:
- uses: actions/checkout@v3
# Setup QEMU for ARM64 Build
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v4
with:
context: ./nodejs
file: ./nodejs/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/pterodactyl/yolks:nodejs_${{ matrix.tag }}