Skip to content

Build and Publish devcontainer image #84

Build and Publish devcontainer image

Build and Publish devcontainer image #84

name: 'Build and Publish devcontainer image'
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v2
- name: Log in to Docker Registry
uses: docker/login-action@v2
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@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