Skip to content

Build and publish ci container #56

Build and publish ci container

Build and publish ci container #56

Workflow file for this run

name: Build and publish ci container
on:
push:
branches: ['*']
paths:
- Dockerfile-ci
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-ci
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: type=sha,prefix=
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile-ci
push: true
tags:
- ${{ steps.meta.outputs.labels }}

Check failure on line 46 in .github/workflows/ci-image.yaml

View workflow run for this annotation

GitHub Actions / Build and publish ci container

Invalid workflow file

The workflow is not valid. .github/workflows/ci-image.yaml (Line: 46, Col: 13): A sequence was not expected
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest