Skip to content

update

update #15

name: 'Build dev container'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master
jobs:
find-jobs:
name: Find Jobs
runs-on: ubuntu-latest
outputs:
folders: ${{ steps.jobs.outputs.folders }}
steps:
- uses: actions/checkout@v1
- id: jobs
uses: philips-labs/list-folders-action@v1
with:
path: ./templates
matrix:
name: Matrix Jobs
runs-on: ubuntu-latest
needs: [find-jobs]
defaults:
run:
working-directory: ${{ matrix.folder }}
strategy:
matrix:
folder: ${{ fromJson(needs.find-jobs.outputs.folders )}}
steps:
- name: do something
run: echo ${{ matrix.folder }}
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# subfolder: ${{ fromJSON(needs.list-folders.outputs.folders) }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and run Dev Container task
# uses: devcontainers/[email protected]
# with:
# subFolder: ./templates/${{ matrix.subfolder }}
# imageName: ghcr.io/pnstack/codespace/${{ matrix.subfolder }}
# platform: linux/amd64,linux/arm64
# push: always