Skip to content

Add GHA for build and push #2

Add GHA for build and push

Add GHA for build and push #2

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
jobs:
test:

Check failure on line 10 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 10, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run test script
run: ./scripts/test.sh
build:
runs-on: ubuntu-latest
needs: test
env:
QUAY_USERNAME: chroot.club+cro_robot_rw
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and push container
run: ./scripts/cibuild.sh container