Skip to content

Commit

Permalink
Merge pull request #1 from Bobbins228/test-workflow
Browse files Browse the repository at this point in the history
test
  • Loading branch information
Bobbins228 authored Oct 17, 2023
2 parents 7c5efc0 + 085666f commit f6791bd
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This workflow will build the CodeFlare Operator image and push it to the opendatahub image registry as well as update versions in the MakeFile and README

name: Build and Push

on:
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: tgymnich/[email protected]
with:
owner: llvm
base: main
head: main
env:
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}

build-and-push:
name: Build and push ODH/CFO image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Go
uses: actions/setup-go@v3
with:
go-version: v1.19

- name: Test local
run: |
ls -al
ls ~
- name: Login to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
registry: quay.io

- name: Cleanup the go.mod and go.sum
run: |
go mod tidy
- name: Image Build and Push
run: |
make build
make image-build -e IMG=quay.io/mcampbel/codeflare-operator:v0.0.dev
make image-push -e IMG=quay.io/mcampbel/codeflare-operator:v0.0.dev

0 comments on commit f6791bd

Please sign in to comment.