Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit c655118

Browse files
committed
Merge branch 'main' of https://github.com/microsoft/vscode-dev-containers into dotnetmssql-removesetecho
2 parents 4d8bf9b + ed772fa commit c655118

File tree

706 files changed

+50463
-11685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

706 files changed

+50463
-11685
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ about: Create a report to help us improve
66
<!-- 🚨 Please only include bugs related to Dev Container Definitions here. 🚨 Other locations:
77
VS Code Remote Development: http://github.com/Microsoft/vscode-remote-release
88
VS Code OSS: http://github.com/Microsoft/vscode
9-
GitHub Codespaces: https://github.community/c/codespaces-beta
9+
GitHub Codespaces: https://github.com/github/feedback/discussions/categories/codespaces-feedback
1010
-->
1111

1212
<!-- Please search existing issues to avoid creating duplicates. -->
1313
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->
1414

1515
- VSCode Version:
1616
- Local OS Version:
17+
- Reproduces in: <Codespaces | Remote - Containers | Both>
1718
- Name of Dev Container Definition with Issue:
1819

1920
Steps to Reproduce:

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about: Suggest an idea for this project
77
<!-- 🚨 Please only include feature requests related to Dev Container Definitions here. 🚨 Other locations:
88
VS Code Remote Development: http://github.com/Microsoft/vscode-remote-release
99
VS Code OSS: http://github.com/Microsoft/vscode
10-
GitHub Codespaces: https://github.community/c/codespaces-beta
10+
GitHub Codespaces: https://github.com/github/feedback/discussions/categories/codespaces-feedback
1111
-->
1212

13-
<!-- Describe the feature request -->
13+
<!-- Describe the feature request -->
14+
15+
Relates to: <Codespaces | Remote - Containers | Both>

.github/ISSUE_TEMPLATE/question.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
22
name: Question
3-
about: Please ask questions on https://stackoverflow.com/questions/tagged/visual-studio-code or https://github.community/c/codespaces-beta
3+
about: Please ask questions on https://stackoverflow.com/questions/tagged/visual-studio-code or https://github.com/github/feedback/discussions/categories/codespaces-feedback
44

55

66
---
77

88
🚨 The issue tracker is not for questions 🚨
99

10-
If you have a question, please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code or for GitHub Codespaces https://github.community/c/codespaces-beta
11-
10+
If you have a question, please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code or for GitHub Codespaces https://github.com/github/feedback/discussions/categories/codespaces-feedback

.github/workflows/cgmanifest.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/patch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Run Patches
22

33
on:
4-
#repository_dispatch:
4+
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches: [main]
77
paths:
88
- 'build/patch/**'
99

.github/workflows/push-and-package.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,27 @@ jobs:
138138
asset_path: ./${{ steps.package.outputs.package_name }}
139139
asset_name: ${{ steps.package.outputs.package_name }}
140140
asset_content_type: application/gzip
141+
142+
image-info:
143+
name: Trigger info extraction
144+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
145+
needs: [package]
146+
runs-on: ubuntu-latest
147+
steps:
148+
- name: Get tag name
149+
id: get_tag_name
150+
run: echo "::set-output name=tag::$(echo "${{ github.ref }}" | grep -oP 'refs/tags/\K(.+)')"
151+
152+
- name: Trigger image info file generation
153+
id: image-info
154+
run: |
155+
set -e
156+
echo '(*) Triggering CG manifest and image history generation using workflow_dispatch'
157+
158+
# Use alternate GitHub token due to https://github.community/t5/GitHub-Actions/Triggering-a-new-workflow-from-another-workflow/td-p/31676
159+
curl -X POST \
160+
-H "Authorization: token ${{ secrets.ALTERNATE_GITHUB_TOKEN }}" \
161+
-H "Accept: application/vnd.github.v3+json" \
162+
-H "Content-Type: application/json" \
163+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/version-history.yml/dispatches \
164+
--data "{\"ref\": \"main\", \"inputs\": {\"release\": \"${{ steps.get_tag_name.outputs.tag }}\", \"cg\": \"false\", \"push\": \"true\", \"overwrite\": \"false\"}"

.github/workflows/push-codespaces-dev.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
name: Build and push "dev" for universal image
22

33
on:
4-
#repository_dispatch:
4+
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches: [main]
77
paths:
88
- 'containers/codespaces-linux/**'
9-
- 'containers/codespaces-linux-stretch/**'
109

1110
jobs:
1211
build-and-push:
1312
name: Build and push universal image
1413
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
15-
strategy:
16-
matrix:
17-
definitionId: ["codespaces-linux", "codespaces-linux-stretch"]
18-
fail-fast: true
1914
runs-on: ubuntu-latest
2015
steps:
2116
- name: Free more space
@@ -50,9 +45,9 @@ jobs:
5045
yarn install
5146
GIT_BRANCH=$(echo "${{ github.ref }}" | grep -oP 'refs/(heads|tags)/\K(.+)')
5247
if [ "$GIT_BRANCH" == "" ]; then
53-
GIT_BRANCH=master
48+
GIT_BRANCH=main
5449
fi
55-
build/vscdc push ${{ matrix.definitionId }} \
50+
build/vscdc push codespaces-linux \
5651
--release $GIT_BRANCH \
5752
--github-repo ${{ github.repository }} \
5853
--registry ${{ secrets.REGISTRY }} \

.github/workflows/push-dev.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Build and push "dev" images
22

33
on:
4-
#repository_dispatch:
4+
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches: [main]
77
paths:
88
- 'containers/alpine/**'
99
- 'containers/debian/**'
1010
- 'containers/cpp/**'
11-
- 'containers/dotnetcore/**'
11+
- 'containers/dotnet/**'
1212
- 'containers/go/**'
1313
- 'containers/java/**'
1414
- 'containers/java-8/**'
@@ -17,6 +17,7 @@ on:
1717
- 'containers/python-3/**'
1818
- 'containers/python-3-anaconda/**'
1919
- 'containers/python-3-miniconda/**'
20+
- 'containers/jekyll/**'
2021
- 'containers/ruby/**'
2122
- 'containers/rust/**'
2223
- 'containers/typescript-node/**'
@@ -66,7 +67,7 @@ jobs:
6667
yarn install
6768
GIT_BRANCH=$(echo "${{ github.ref }}" | grep -oP 'refs/(heads|tags)/\K(.+)')
6869
if [ "$GIT_BRANCH" == "" ]; then
69-
GIT_BRANCH=master
70+
GIT_BRANCH=main
7071
fi
7172
build/vscdc push --page ${{ matrix.page }} \
7273
--pageTotal ${{ matrix.page-total }} \
@@ -95,7 +96,7 @@ jobs:
9596
yarn install
9697
GIT_BRANCH=$(echo "${{ github.ref }}" | grep -oP 'refs/(heads|tags)/\K(.+)')
9798
if [ "$GIT_BRANCH" == "" ]; then
98-
GIT_BRANCH=master
99+
GIT_BRANCH=main
99100
fi
100101
build/vscdc pack --prep-and-package-only \
101102
--release $GIT_BRANCH \
@@ -117,23 +118,26 @@ jobs:
117118
name: ${{ steps.package.outputs.package_name }}
118119
path: ./${{ steps.package.outputs.package_name }}
119120

120-
cgmanifest:
121-
name: Trigger CG generation
121+
image-info:
122+
name: Trigger info extraction
122123
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
123124
needs: [package]
124125
runs-on: ubuntu-latest
125126
steps:
126-
- name: Trigger CG generation
127-
id: cgmanifest
127+
- name: Trigger image info file generation
128+
id: image-info
128129
run: |
129130
set -e
130-
echo '(*) Triggering CG manifest generation using repository_dispatch'
131-
131+
echo '(*) Triggering CG manifest and image history generation using workflow_dispatch'
132+
GIT_BRANCH=$(echo "${{ github.ref }}" | grep -oP 'refs/(heads|tags)/\K(.+)')
133+
if [ "$GIT_BRANCH" == "" ]; then
134+
GIT_BRANCH=main
135+
fi
132136
# Use alternate GitHub token due to https://github.community/t5/GitHub-Actions/Triggering-a-new-workflow-from-another-workflow/td-p/31676
133137
curl -X POST \
134138
-H "Authorization: token ${{ secrets.ALTERNATE_GITHUB_TOKEN }}" \
135-
-H "Accept: application/vnd.github.everest-preview+json" \
139+
-H "Accept: application/vnd.github.v3+json" \
136140
-H "Content-Type: application/json" \
137-
https://api.github.com/repos/${{ github.repository }}/dispatches \
138-
--data '{"event_type":"oss_cg_trigger"}'
141+
https://api.github.com/repos/${{ github.repository }}/actions/workflows/version-history.yml/dispatches \
142+
--data "{\"ref\": \"${{ github.ref }}\", \"inputs\": {\"release\": \"$GIT_BRANCH\", \"cg\": \"true\", \"push\": \"true\", \"overwrite\": \"true\"}"
139143

.github/workflows/script-library.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Test script library and update definitions
22

33
on:
4-
#repository_dispatch:
4+
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches: [main]
77
paths:
88
- 'script-library/**'
99

@@ -13,7 +13,7 @@ jobs:
1313
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
1414
strategy:
1515
matrix:
16-
os: [debian, alpine, redhat]
16+
os: [debian, ubuntu, alpine, centos]
1717
fail-fast: false
1818
runs-on: ubuntu-latest
1919
steps:
@@ -30,17 +30,15 @@ jobs:
3030
id: checkout
3131
uses: actions/checkout@v1
3232

33+
- name: Setup buildx
34+
uses: docker/setup-buildx-action@a1c666d855a037f439ebb7bf701ee144fcadd307
35+
id: buildx
36+
3337
- name: Test script library
3438
id: test_script_library
3539
run: |
3640
set -e
37-
cd script-library
38-
if [ "${{ matrix.os }}" = "redhat" ]; then
39-
IMAGE_TO_TEST="centos:7"
40-
else
41-
IMAGE_TO_TEST=${{ matrix.os }}
42-
fi
43-
docker build --build-arg DISTRO=${{ matrix.os }} --build-arg IMAGE_TO_TEST=$IMAGE_TO_TEST -f test/Dockerfile .
41+
bash script-library/test/regression/test.sh "${{ matrix.os }}"
4442
4543
copy-scripts:
4644
name: Copy and commit script-library updates

0 commit comments

Comments
 (0)