rm commented line char #78
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 * * 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_build | |
uses: docker/build-push-action@v5 | |
with: | |
push: false | |
context: . | |
file: Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
tags: 'ghcr.io/${{ github.repository_owner }}/devcontainer:latest' | |
- | |
name: Push Dev Container Image | |
id: docker_push | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
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' |