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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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/[email protected]
- 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 }},latest
push: always