-
-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (30 loc) · 841 Bytes
/
prebuild_devcontainer.yml
File metadata and controls
33 lines (30 loc) · 841 Bytes
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
name: Pre-build Dev Container
on:
workflow_dispatch:
push:
paths:
- '.devcontainer/**'
- 'Cargo.lock'
- 'Cargo.toml'
- 'rust-toolchain.toml'
branches: [ "main" ]
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Pre-build and push
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
cacheTo: ghcr.io/${{ github.repository }}/devcontainer
push: filter
refFilterForPush: refs/heads/main
eventFilterForPush: push, workflow_dispatch