Skip to content

Commit

Permalink
Build devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
xychen committed Jan 23, 2024
1 parent 524d131 commit a9bd237
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"build": {
"dockerfile": "Dockerfile"
}
}
35 changes: 35 additions & 0 deletions .github/workflows/build-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches: [ master ]

concurrency:
group: build-devcontainer
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
registry:
- registry.cn-hangzhou.aliyuncs.com

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
registry: ${{ matrix.registry }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Build dev container image
uses: devcontainers/ci@v0.3
with:
imageName: ${{ matrix.registry }}/xingrz/devcontainer-hifi4
cacheFrom: ${{ matrix.registry }}/xingrz/devcontainer-hifi4
imageTag: latest,2021.7
push: true

0 comments on commit a9bd237

Please sign in to comment.