-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c01a9f
commit 33223e2
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |