27 lines
638 B
YAML
27 lines
638 B
YAML
name: build-and-push
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- high-performance
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and push with Kaniko
|
|
uses: aicoe-aioc/kaniko-action@v1
|
|
with:
|
|
registry: ${{ secrets.REGISTRY_HOSTPORT }}
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
repo: nxtgauge-frontend-solid
|
|
tags: |
|
|
${{ github.sha }}
|
|
${{ github.ref_name }}-latest
|
|
dockerfile: Dockerfile
|
|
context: .
|