Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 3 #93

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
aaa4218
ideas
jcbhmr Aug 17, 2023
0b581c1
Update test-relevant-features.yml
jcbhmr Aug 17, 2023
3dcc366
Update publish-features.yml
jcbhmr Aug 17, 2023
98bd219
Update publish-features.yml
jcbhmr Aug 17, 2023
bfcb289
Update and rename test-relevant-features.yml to test-features.yml
jcbhmr Aug 17, 2023
80af6ac
Update update-feature-readmes.yml
jcbhmr Aug 17, 2023
472820e
Create update-main-readme.yml
jcbhmr Aug 17, 2023
ec829d1
Update update-feature-readmes.yml
jcbhmr Aug 17, 2023
06ff654
Update update-feature-readmes.yml
jcbhmr Aug 17, 2023
ff23d6b
Update update-main-readme.yml
jcbhmr Aug 17, 2023
aa6127e
Update publish-features.yml
jcbhmr Aug 17, 2023
588333a
Update test-features.yml
jcbhmr Aug 17, 2023
55bc996
Update publish-features.yml
jcbhmr Aug 17, 2023
233510e
Update publish-features.yml
jcbhmr Aug 17, 2023
99cd82d
Update test-features.yml
jcbhmr Aug 17, 2023
828e880
workflow_dispatch only
jcbhmr Aug 17, 2023
747e19a
Update publish-features.yml
jcbhmr Aug 17, 2023
5f88e50
Update publish-features.yml
jcbhmr Aug 17, 2023
7405175
Update README.md
jcbhmr Aug 17, 2023
3804e68
Update README.md
jcbhmr Aug 17, 2023
dc780b8
Update README.md
jcbhmr Aug 17, 2023
2c890dd
Update test-features.yml
jcbhmr Aug 17, 2023
3e53573
Update test-features.yml
jcbhmr Aug 17, 2023
0056518
Update test-features.yml
jcbhmr Aug 17, 2023
41df958
Update update-feature-readmes.yml
jcbhmr Aug 17, 2023
379acfc
Update test-features.yml
jcbhmr Aug 17, 2023
ca8c977
Update update-feature-readmes.yml
jcbhmr Aug 17, 2023
8e91319
Update README.md
jcbhmr Aug 17, 2023
d3e087e
more stuff
jcbhmr Aug 17, 2023
0234496
Apply automatic changes
jcbhmr Aug 17, 2023
7e40c8b
Update update-main-readme.yml
jcbhmr Aug 17, 2023
b37e2ab
on publish
jcbhmr Aug 17, 2023
7936937
Update publish-features.yml
jcbhmr Aug 17, 2023
592c67c
Apply automatic changes
jcbhmr Aug 18, 2023
c382dac
Update README.md
jcbhmr Aug 18, 2023
0edca5a
Update README.md
jcbhmr Aug 18, 2023
a5c8aef
Update README.md
jcbhmr Aug 18, 2023
a9d6974
Update update-main-readme.yml
jcbhmr Aug 18, 2023
60f2d69
Apply automatic changes
jcbhmr Aug 18, 2023
f3e65b0
Create devcontainer.json
mustafacco7 Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .devcontainer.json

This file was deleted.

5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
}
}
32 changes: 32 additions & 0 deletions .github/workflows/publish-features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish features
on:
# push:
# branches: "main"
# paths:
# - src/*/**
# - .github/workflows/publish-features.yml
workflow_dispatch:
concurrency: ${{ github.workflow }}
jobs:
publish-features:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- run: npm install -g @devcontainers/cli
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: devcontainer features publish -r ghcr.io -n ${{ github.repository }} src
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-main-readme:
needs: publish-features
permissions:
contents: write
uses: ./.github/workflows/update-main-readme.yml
secrets: inherit
47 changes: 0 additions & 47 deletions .github/workflows/release.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/test-features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test features
on:
push:
branches: "main"
paths:
- src/*/**
- test/*/**
- .github/workflows/test-features.yml
pull_request:
paths:
- src/*/**
- test/*/**
- .github/workflows/test-features.yml
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
list-features:
outputs:
relevant-features: ${{ steps.list-features.outputs.relevant-features }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: list-features
uses: devcontainers-community/list-features@v2
test-feature:
needs: list-features
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.list-features.outputs.relevant-features) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm install -g @devcontainers/cli
- name: devcontainer features test -f ${{ matrix.id }}
run: |
if [[ -e test/${{ matrix.id }}/test.sh ]]; then
devcontainer features test -f ${{ matrix.id }}
else
devcontainer features test -f ${{ matrix.id }} --skip-autogenerated
fi
58 changes: 0 additions & 58 deletions .github/workflows/test.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/update-feature-readmes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update feature readmes
on:
push:
branches: "main"
paths:
- .github/workflows/update-feature-readmes.yml
- src/*/devcontainer-feature.json
pull_request:
paths:
- .github/workflows/update-feature-readmes.yml
- src/*/devcontainer-feature.json
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-feature-readmes:
concurrency: ${{ github.ref }}-write
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: devcontainers/action@v1
with:
base-path-to-features: src
generate-docs: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
27 changes: 27 additions & 0 deletions .github/workflows/update-main-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update main readme
on:
push:
branches: "main"
paths:
- .github/workflows/update-main-readme.yml
pull_request:
paths:
- .github/workflows/update-main-readme.yml
schedule:
# https://crontab.guru/daily
- cron: "0 0 * * *"
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-main-readme:
concurrency: ${{ github.ref }}-write
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: devcontainers-community/update-collection-readme@v1
- uses: stefanzweifel/git-auto-commit-action@v4
16 changes: 0 additions & 16 deletions .github/workflows/validate.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Microsoft Corporation
Copyright (c) 2023 YOUR_NAME

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading