Add devcontainer

This commit is contained in:
2024-05-27 12:32:55 +08:00
committed by GitHub
parent 91b3076e35
commit 2aab5876ff
8 changed files with 31 additions and 0 deletions

10
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM dart
RUN apt-get update
RUN apt-get install -y curl git unzip xz-utils zip libglu1-mesa
RUN apt-get clean
RUN git clone https://github.com/flutter/flutter.git -b stable --depth 1 /flutter
ENV PATH="/flutter/bin:$PATH"
RUN flutter doctor

View File

@@ -0,0 +1,15 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"forwardPorts": [3000],
"name": "Flutter",
"customizations": {
"vscode": {
"extensions": [
"Dart-Code.dart-code",
"Dart-Code.flutter"
]
}
}
}

View File

@@ -3,6 +3,7 @@ on:
push:
branches: ["*"]
paths-ignore:
- '.devcontainer/**'
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'

View File

@@ -3,6 +3,7 @@ on:
push:
branches: ["*"]
paths-ignore:
- '.devcontainer/**'
- '.github/workflows/android.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'

View File

@@ -3,6 +3,7 @@ on:
push:
branches: ["*"]
paths-ignore:
- '.devcontainer/**'
- '.github/workflows/android.yml'
- '.github/workflows/ios.yml'
- '.github/workflows/macos.yml'

View File

@@ -3,6 +3,7 @@ on:
push:
branches: ["*"]
paths-ignore:
- '.devcontainer/**'
- '.github/workflows/android.yml'
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'

View File

@@ -3,6 +3,7 @@ on:
push:
branches: ["*"]
paths-ignore:
- '.devcontainer/**'
- '.github/workflows/android.yml'
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'

View File

@@ -3,6 +3,7 @@ on:
push:
branches: ["*"]
paths-ignore:
- '.devcontainer/**'
- '.github/workflows/android.yml'
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'