-
-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (36 loc) · 1020 Bytes
/
prebuild_devcontainer.yml
File metadata and controls
42 lines (36 loc) · 1020 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
34
35
36
37
38
39
40
41
42
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: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- 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
push: always