This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
Pulumi Devcontainer Build #19
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: devcontainer | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.devcontainer/**' | |
- '.vscode/**' | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '.devcontainer/**' | |
- '.vscode/**' | |
- '**.md' | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
actions: write | |
steps: | |
- | |
name: Git Checkout | |
uses: actions/checkout@v4 | |
id: git | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
id: qemu | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
id: buildx | |
- | |
name: Login to GitHub Container Registry | |
id: login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- | |
name: Build & Publish Dev Container | |
id: docker | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
context: . | |
file: Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
tags: 'ghcr.io/${{ github.repository_owner }}/devcontainer:latest' |