Merge branch 'main' of github.com:koush/scrypted into main

This commit is contained in:
Koushik Dutta
2022-11-23 08:45:12 -08:00

View File

@@ -14,7 +14,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16-bullseye", "18-bullseye"]
NODE_VERSION: ["18"]
SUPERVISOR: ['', '.s6']
steps:
- name: Check out the repo
uses: actions/checkout@v2
@@ -41,13 +42,13 @@ jobs:
- name: Build and push Docker image (scrypted-common)
uses: docker/build-push-action@v2
with:
build-args: BASE=${{ matrix.node }}
build-args: NODE_VERSION=${{ matrix.NODE_VERSION }}
context: docker/
file: docker/Dockerfile.common
file: docker/Dockerfile.common${{ matrix.SUPERVISOR }}
platforms: linux/amd64,linux/arm64,linux/armhf
push: true
tags: |
koush/scrypted-common:${{ matrix.node }}
${{ matrix.node == '16-bullseye' && 'koush/scrypted-common:latest' || '' }}
koush/scrypted-common:${{ matrix.NODE_VERSION }}${{ matrix.SUPERVISOR }}
# ${{ matrix.NODE_VERSION == '16-bullseye' && 'koush/scrypted-common:latest' || '' }}
cache-from: type=gha
cache-to: type=gha,mode=max