Skip to content

Publish Docker image #3

Publish Docker image

Publish Docker image #3

name: Publish Docker image
on:
workflow_dispatch:
inputs:
ddp_version:
required: true
type: string
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
push: true
tags: bafto/hetzner:FindFavouriteSong
build-args:
- DDP_VERSION: ${{ inputs.ddp_version }}

Check failure on line 36 in .github/workflows/build_and_push_image.yaml

View workflow run for this annotation

GitHub Actions / Publish Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_push_image.yaml (Line: 36, Col: 13): A sequence was not expected