Skip to content

build and push images on branches or tags if tests pass, use main for… #1

build and push images on branches or tags if tests pass, use main for…

build and push images on branches or tags if tests pass, use main for… #1

Workflow file for this run

name: Build and Push
on: push
jobs:
release:

Check failure on line 5 in .github/workflows/build-push.yml

View workflow run for this annotation

GitHub Actions / Build and Push

Invalid workflow file

The workflow is not valid. .github/workflows/build-push.yml (Line: 5, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: go-build-test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: linode/cluster-api-provider-linode
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}