Skip to content

CI Workflows and Operator SDK init #1

CI Workflows and Operator SDK init

CI Workflows and Operator SDK init #1

Workflow file for this run

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

Check failure on line 6 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
name: build-test-lint
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
cache: true
check-latest: true
- name: Set up ko
uses: ko-build/[email protected]
env:
KO_DOCKER_REPO: quay.io/avik6028
- name: Lint
run: make lint
- name: Build
env:
auth_token: ${{ secrets.QUAY_AUTH_TOKEN }}
run: |
echo "${auth_token}" | ko login quay.io --username ${{ secrets.QUAY_USER_NAME }} --password-stdin
make container-build
- name: Test
run: make test
- name: Push
env:
auth_token: ${{ secrets.QUAY_AUTH_TOKEN }}
run: |
echo "${auth_token}" | ko login quay.io --username ${{ secrets.QUAY_USER_NAME }} --password-stdin
make container-push