Skip to content

Commit 3f19ef0

Browse files
committed
feat: add docker dev ci
1 parent 886d7e8 commit 3f19ef0

File tree

5 files changed

+59
-11
lines changed

5 files changed

+59
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
"dockerfile": "../Dockerfile.dev"
1010
},
1111
"features": {
12-
"ghcr.io/devcontainers/features/rust:1": {
13-
"version": "latest",
14-
"profile": "minimal"
15-
}
1612
}
1713

1814
// Features to add to the dev container. More info: https://containers.dev/features.

.github/workflows/docker_dev.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: docker_dev
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release/*
7+
8+
9+
jobs:
10+
artifacts:
11+
name: docker_dev
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
-
18+
name: Set up QEMU
19+
uses: docker/setup-qemu-action@v2
20+
-
21+
name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v2
23+
-
24+
name: Login to ali registry
25+
uses: docker/login-action@v2
26+
with:
27+
registry: registry.cn-hangzhou.aliyuncs.com
28+
username: ${{ secrets.DOCKERHUB_USERNAME }}
29+
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
-
31+
name: Build and push
32+
uses: docker/build-push-action@v4
33+
with:
34+
context: .
35+
push: true
36+
file: ./Dockerfile.dev
37+
tags: registry.cn-hangzhou.aliyuncs.com/pivot_studio/pivot_lang_dev:latest

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44
branches:
55
- master
66
- release/*
7-
7+
paths:
8+
- '**.rs'
9+
- '**/Cargo.*'
10+
- '.github/workflows/release.yml'
11+
- '**.pi'
12+
- '**/Kagari.*'
13+
- 'codecov.yml'
814

915
jobs:
1016
artifacts:

Dockerfile.dev

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,18 @@ RUN apt-get update && apt-get install -y gnupg2 software-properties-common cmake
66
RUN apt-get update && apt-get install -y lsb-release wget && apt-get clean all
77
RUN ./setup-llvm.sh
88
RUN apt update
9-
RUN apt install -y git libxml2 build-essential libunwind-dev
9+
RUN apt install -y git libxml2 build-essential libunwind-dev
10+
RUN apt-get update
11+
12+
# Get Ubuntu packages
13+
RUN apt-get install -y \
14+
build-essential \
15+
curl
16+
17+
# Update new packages
18+
RUN apt-get update
19+
20+
# Get Rust
21+
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
22+
ENV PATH="/root/.cargo/bin:${PATH}"
23+
RUN cargo

bors.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)