Skip to content

Create and publish a Docker image #1

Create and publish a Docker image

Create and publish a Docker image #1

Workflow file for this run

name: Create and publish a Docker image
on:
schedule:
- cron: "*/3 * * * *"
release:
types: [published]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Echo!
run: |
echo "${{ steps.meta.outputs.tags }}"
echo "${{ steps.meta.outpus.labels }}"
with:

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

View workflow run for this annotation

GitHub Actions / Create and publish a Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 31, Col: 9): Unexpected value 'with'
context: .
file: e2e.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: env.GIT_DIFF