Skip to content

perf(ci): parallelize jobs, prebuilt Docker image, caching and shallo… #1

perf(ci): parallelize jobs, prebuilt Docker image, caching and shallo…

perf(ci): parallelize jobs, prebuilt Docker image, caching and shallo… #1

Workflow file for this run

# Copyright The SimpleKernel Contributors
name: dev-image
on:
push:
branches: [main]
paths:
- '.devcontainer/Dockerfile'
- '.github/workflows/dev-image.yml'
workflow_dispatch:
env:
IMAGE: ghcr.io/simple-xx/simplekernel-dev
jobs:
build-and-push:
runs-on: ubuntu-24.04-arm
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .devcontainer
file: .devcontainer/Dockerfile
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max