Lab optimizations - 04.10.24 (#46) #3
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: Create pre-built container for acLabs development | |
on: | |
push: | |
branches: ['**'] # branches will be filtered in the jobs | |
paths: | |
- .github/workflows/container_build_dev.yml | |
- .github/workflows/container_build_child.yml | |
- containers/dev/** | |
workflow_dispatch: | |
branches: ['**'] # branches will be filtered in the jobs | |
jobs: | |
build-demo-container: | |
# fork - build container from any branch for testing | |
# parent repo - build on main branch only | |
if: github.repository != 'aristanetworks/acLabs' || github.ref == 'refs/heads/main' | |
uses: ./.github/workflows/container_build_child.yml | |
with: | |
container_name: "dev" | |
image_tags: "latest" | |
from_image: "mcr.microsoft.com/devcontainers/base" | |
from_variant: "ubuntu-22.04" | |
username: "vscode" |