Publish devcontainer #32
Workflow file for this run
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: 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 GitHub Actions / Publish devcontainerInvalid workflow file
|
||
${{ 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) }} |