-
-
Notifications
You must be signed in to change notification settings - Fork 971
40 lines (35 loc) · 995 Bytes
/
dev-container.yml
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
# This workflow builds a docker image with the Dev Container CLI (https://github.com/devcontainers/cli)
#
name: 'Build Dev Container Image'
on:
workflow_dispatch:
push:
paths:
- '.devcontainer/**'
- 'vcpkg.json'
schedule:
# https://crontab.guru/#0_0_*_*_1
- cron: '0 0 * * 1'
permissions:
contents: read
# Push images to GHCR.
packages: write
jobs:
build:
if: github.repository == 'LadybirdBrowser/ladybird'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Base Dev Container Image
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/ladybirdbrowser/ladybird-devcontainer
imageTag: base,latest
push: always