➕ Add gateway-api GRPC and GitHub Actions for Prebuild DevContainer #7
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: Prebuild DevContainer 🏗️ | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
prebuild: | |
name: Prebuild DevContainer 🏗️ | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ghcr.io/${{ github.repository }} | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Pre-build dev container image | |
uses: devcontainers/[email protected] | |
with: | |
subFolder: .github | |
imageName: ${{ env.IMAGE_NAME }} | |
cacheFrom: ${{ env.IMAGE_NAME }} | |
push: always |