forked from serious-scaffold/ss-python
-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1006 Bytes
/
devcontainer.yml
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
name: DevContainer
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
prebuild:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/login-action@v3
with:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
- env:
PYTHON_VERSION: ${{ matrix.python-version }}
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/${{ github.repository }}
imageTag: prod-py${{ matrix.python-version }}
push: always
subFolder: .devcontainer/prebuild
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main