-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.2 KB
/
dcc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: dccTemplate
on:
workflow_call:
inputs:
name:
required: true
type: string
skip:
required: false
type: boolean
jobs:
build:
if: ${{ !inputs.skip }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install latest devcontainer CLI
run: npm install -g @devcontainers/cli
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: >
curl -so- https://raw.githubusercontent.com/dhhyi/devcontainer-creator/dist/bundle.js | node -
https://raw.githubusercontent.com/dhhyi/devcontainer-creator/main/examples/${{ inputs.name }}.yaml
dist/test/${{ inputs.name }}
--test
--debug
--dump-meta
--name "Example devcontainer for ${{ inputs.name }}"
--push
name: dcc
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.name }}
path: dist/test/${{ inputs.name }}
if-no-files-found: error
include-hidden-files: true