Files
devcontainer-bun/.github/workflows/build-devcontainer.yml
Kenneth cf57f320de
Some checks failed
Build Dev Container Image / build (push) Failing after 6s
first commit
Co-authored-by: Ona <no-reply@ona.com>
2026-01-15 21:28:50 +00:00

49 lines
1.1 KiB
YAML

name: Build Dev Container Image
on:
push:
branches:
- main
paths:
- '.devcontainer/**'
workflow_dispatch:
env:
REGISTRY: cr.nym.sh
IMAGE_NAME: kennethnym/devcontainer-bun
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .devcontainer
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}