Skip to content

Workflow file for this run

name: Build and Publish
on:
push:
tags:
- *

Check failure on line 6 in .github/workflows/docker-image.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-image.yaml

Invalid workflow file

You have an error in your yaml syntax on line 6
branch:
- main
jobs:
build:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to docker.io registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image and push to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/riscv64,linux/s390x,linux/ppc64le
push: true
build-args: VERSION=${{github.ref_name}}
tags: |
wollomatic/container-hoster:latest
wollomatic/container-hoster:${{github.ref_name}}