2023-05-22 03:59:53 +00:00
|
|
|
# This workflow builds a docker image with the Dev Container CLI (https://github.com/devcontainers/cli)
|
2023-05-24 18:07:34 +00:00
|
|
|
#
|
|
|
|
name: 'Build Dev Container Image'
|
2023-05-22 03:59:53 +00:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '.devcontainer/**'
|
|
|
|
schedule:
|
|
|
|
# https://crontab.guru/#0_0_*_*_1
|
|
|
|
- cron: '0 0 * * 1'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
# Push images to GHCR.
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-06-09 11:02:56 +00:00
|
|
|
if: github.repository == 'LadybirdBrowser/ladybird'
|
2023-05-22 03:59:53 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout
|
2023-09-11 01:51:11 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-05-22 03:59:53 +00:00
|
|
|
|
|
|
|
- name: Login to GitHub Container Registry
|
2023-09-18 01:38:51 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-05-22 03:59:53 +00:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build Base Dev Container Image
|
|
|
|
uses: devcontainers/ci@v0.3
|
|
|
|
with:
|
2024-06-13 16:59:06 +00:00
|
|
|
imageName: ghcr.io/ladybirdbrowser/ladybird-devcontainer
|
2023-05-22 03:59:53 +00:00
|
|
|
imageTag: base,latest
|
|
|
|
push: always
|