28 lines
581 B
YAML
28 lines
581 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Build image
|
|
run: ./build.sh
|
|
|
|
- name: Docker login
|
|
if: github.ref == 'refs/heads/main'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: docker.sdal.tech
|
|
username: ${{ secrets.LOCAL_REGISTRY_USER }}
|
|
password: ${{ secrets.LOCAL_REGISTRY_PASSWORD }}
|
|
|
|
- name: Push image
|
|
if: github.ref == 'refs/heads/main'
|
|
run: ./build.sh push
|