Skip to content

Commit

Permalink
feat: add devcontainer prebuild addresses Azure-Samples#157
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy4pi314 committed Sep 20, 2023
1 parent fdd4be2 commit 7461a42
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker-prebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Dev Container Build and Push Image

on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- "v*.*.*"
pull_requests:
branches:
- "main"
# TODO: remove manual trigger below once testing is done
workflow_dispatch:
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/[email protected]
with:
subFolder: .github
imageName: ghcr.io/${{ github.repository }}
cacheFrom: ghcr.io/${{ github.repository }}
push: always

0 comments on commit 7461a42

Please sign in to comment.