Skip to content

Initial commit

Initial commit #1

name: Build devcontainer image
on:
push:
branches: [master]
paths:
- '.devcontainer/Dockerfile'
workflow_dispatch:
env:
IMAGE: ghcr.io/league-examples/docker-node-template/devcontainer
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .devcontainer
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:${{ github.sha }}
cache-from: type=registry,ref=${{ env.IMAGE }}:latest
cache-to: type=inline