Skip to content

Update GH Actions #1

Update GH Actions

Update GH Actions #1

Workflow file for this run

name: Build Workflow
on:
push:
tags: # Build on tag creation (any)
- *

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

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
jobs:
test-n-lint:
uses: ./.github/workflows/test-n-lint.yml
build:
name: Build the image
runs-on: ubuntu-latest
needs: [test] # Requires "Test & Lint" workflow to succeed
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/#-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ vars.DOCKERHUB_PROJECT }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max