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 84c479e
Show file tree
Hide file tree
Showing 2 changed files with 41 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"
}
}
36 changes: 36 additions & 0 deletions .github/workflows/build-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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:
imageTag: latest,2021.7
imageName: ${{ matrix.registry }}/xingrz/devcontainer-hifi4
cacheFrom: ${{ matrix.registry }}/xingrz/devcontainer-hifi4
platform: linux/amd64
push: always

0 comments on commit 84c479e

Please sign in to comment.