Skip to content

Publish devcontainer #32

Publish devcontainer

Publish devcontainer #32

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 }}
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: |

Check failure on line 47 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: 47, Col: 17): Unexpected symbol: '"3'. Located at position 26 within expression: matrix.python-version == "3.11" && format("ghcr.io/{0}:{1}", github.repository, github.ref_name) || format("ghcr.io/{0}:{1}_{2}", github.repository, github.ref_name, matrix.python-version)
${{ matrix.python-version == "3.11" && format("ghcr.io/{0}:{1}", github.repository, github.ref_name) || format("ghcr.io/{0}:{1}_{2}", github.repository, github.ref_name, matrix.python-version) }}
${{ matrix.python-version == "3.11" && format("ghcr.io/{0}:{1}", github.repository, github.sha) || format("ghcr.io/{0}:{1}_{2}", github.repository, github.sha, matrix.python-version) }}