-
Notifications
You must be signed in to change notification settings - Fork 91
42 lines (35 loc) · 1.05 KB
/
post-create.yml
File metadata and controls
42 lines (35 loc) · 1.05 KB
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
name: Test CI/CD with DevContainer Builder
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-custom-builder:
runs-on: ubuntu-latest
# Add permissions for pushing to GitHub Container Registry
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
# Add authentication step for GitHub Container Registry
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build dev container image
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
# cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
# push: always
- name: Run make ci-build in dev container
uses: devcontainers/[email protected]
with:
push: never
runCmd: python3 special_add.py
# ...existing code...