Skip to content

feat: update build

feat: update build #9

Workflow file for this run

name: Syft Task Build
on:
workflow_dispatch:
push:
branches:
- main # Only run this workflow on pushes to the main branch
jobs:
build:
# Check if the last commit is a merge from the `ui-changes` branch
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
runs-on: ubuntu-latest
environment: docker
permissions:
id-token: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: GitHub Tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GHCR_PAT }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container Registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
- name: Build and Push Docker Image
working-directory: sender
uses: docker/build-push-action@v4

Check failure on line 43 in .github/workflows/go.yaml

View workflow run for this annotation

GitHub Actions / Syft Task Build

Invalid workflow file

The workflow is not valid. .github/workflows/go.yaml (Line: 43, Col: 9): Unexpected value 'uses' .github/workflows/go.yaml (Line: 44, Col: 9): Unexpected value 'with'
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ github.repository_owner }}/og-task-syft:${{ steps.tag_version.outputs.new_tag }}
file: ./Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max