Skip to content

Publish devcontainer #31

Publish devcontainer

Publish devcontainer #31

name: Publish devcontainer
on:
workflow_dispatch:
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build, tag, and push image to GHCR [python ${{ matrix.python-version }}]
uses: docker/build-push-action@v6
with:
builder: ${{ steps.buildx.outputs.name }}
build-args:
- GIT-SHA=${{ github.sha }}

Check failure on line 40 in .github/workflows/publish-devcontainer.yml

View workflow run for this annotation

GitHub Actions / Publish devcontainer

Invalid workflow file

The workflow is not valid. .github/workflows/publish-devcontainer.yml (Line: 40, Col: 13): A sequence was not expected .github/workflows/publish-devcontainer.yml (Line: 47, Col: 17): Unexpected symbol: '"3'. Located at position 26 within expression: matrix.python-version == "3.11" && "ghcr.io/${{ github.repository
- PYTHON_VERSION=${{ matrix.python-version }}
cache-from: type=gha,scope=compilerla
cache-to: type=gha,scope=compilerla,mode=max
context: .
file: .devcontainer/Dockerfile
push: true
tags: |
${{ matrix.python-version == "3.11" && "ghcr.io/${{ github.repository }}:${{ github.ref_name }}" || "ghcr.io/${{ github.repository }}:${{ github.ref_name }}_${{ matrix.python-version }}" }}
${{ matrix.python-version == "3.11" && "ghcr.io/${{ github.repository }}:${{ github.sha }}" || "ghcr.io/${{ github.repository }}:${{ github.sha }}_${{ matrix.python-version }}" }}