Skip to content

Add C# Dev Kit to devcontainer #127

Add C# Dev Kit to devcontainer

Add C# Dev Kit to devcontainer #127

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build a dev container image
on:
workflow_dispatch: # Manual trigger
schedule:
- cron: "30 17 * * 0"
push:
branches:
- main
paths:
- .devcontainer/**
- .github/workflows/devcontainer.yml
jobs:
build-and-push:
name: Build and push dev container image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dev Container CLI
run: npm install -g @devcontainers/cli
- name: Build and push ghcr.io/sliekens/gw2sdk/devcontainer
run: devcontainer build --no-cache --image-name ghcr.io/sliekens/gw2sdk/devcontainer --push --workspace-folder .