Skip to content

Commit

Permalink
Create build-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraInstinct14 authored Jun 20, 2023
1 parent 2c01a9f commit 33223e2
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
tagName:
description: 'Tag Name'
required: true
default: 'latest'

jobs:
build:
name: build-ci

runs-on: ubuntu-20.04
permissions:
packages: write

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Try to build the kube-loxilb image
run: make

- name: Try to build the kube-loxilb docker image
run: docker build . --tag ghcr.io/loxilb-io/kube-loxilb:latest

0 comments on commit 33223e2

Please sign in to comment.