Skip to content

fix: docker

fix: docker #4

Workflow file for this run

name: 📦 Docker Image Build & Push
on:
push:
branches:
- "**"
jobs:
docker:
runs-on: ubuntu-latest
name: Build and push Docker image
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Inject enhanced GitHub environment variables
uses: rlespinasse/github-slug-action@v5
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: |
ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/albert-docs:${{ env.GITHUB_REF_SLUG }}
${{ github.ref_name == 'main' && format('ghcr.io/{0}/albert-docs:latest', env.GITHUB_REPOSITORY_OWNER_PART_SLUG) || '' }}
cache-from: type=registry,ref=ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/albert-docs:${{ env.GITHUB_REF_SLUG }}
cache-to: type=inline
build-args:
PRODUCTION: "true"

Check failure on line 33 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / 📦 Docker Image Build & Push

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 33, Col: 13): A mapping was not expected
GITHUB_SHA: ${{ github.sha }}