Skip to content

feat: build and publish data-dev container #6

feat: build and publish data-dev container

feat: build and publish data-dev container #6

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- jcd/images
- main
jobs:
build:

Check failure on line 10 in .github/workflows/images.yaml

View workflow run for this annotation

GitHub Actions / Publish Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/images.yaml (Line: 10, Col: 3): The workflow must contain at least one job with no dependencies.
needs: setup
runs-on: ubuntu-latest
strategy:
matrix:
image:
- compile
- data-dev
env:
REGISTRY: ghcr.io
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Lint Dockerfiles
uses: hadolint/[email protected]
with:
dockerfile: images/${{ matrix.image }}/Dockerfile
- name: Log in to the container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ matrix.image }}
tags: |
type=sha
- name: Build and push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: images/${{ matrix.image }}/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}