Skip to content

Merge pull request #12 from emilcode-dev/feature/ghaction-publish-pac… #9

Merge pull request #12 from emilcode-dev/feature/ghaction-publish-pac…

Merge pull request #12 from emilcode-dev/feature/ghaction-publish-pac… #9

Workflow file for this run

name: Build Devcontainer Image
on:
push:
paths:
- '.devcontainer/Dockerfile'
- '.devcontainer/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # nötig für Push nach GHCR
steps:
- uses: actions/checkout@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: Build and push devcontainer
uses: docker/build-push-action@v5
with:
context: .
file: .devcontainer/Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/embedded-lib-dev:latest