adding dev container config #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dev Container Build and Push Image | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: [main] | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
id: checkout | |
uses: actions/checkout@v1 | |
- | |
name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.REGISTRY_TOKEN }} | |
- | |
name: Pre-build dev container image | |
uses: devcontainers/ci@v0.2 | |
with: | |
subFolder: .github | |
imageName: ghcr.io/${{ github.repository }} | |
cacheFrom: ghcr.io/${{ github.repository }} | |
push: always |