Merge pull request #8 from drifter089/devcontainer #9
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: | |
- "master" | |
tags: | |
- "v*.*.*" | |
pull_requests: | |
branches: | |
- "master" | |
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 |