Skip to content
name: 'Build and Publish devcontainer image'
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Log in to Docker Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Variables for Tags
uses: rlespinasse/github-slug-action@v3.x
- name: Build and run dev container task
uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3
with:
imageName: ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/${{ env.GITHUB_REPOSITORY_NAME_PART_SLUG }}
imageTag: ${{ env.GITHUB_REF_SLUG }}
push: always