29 lines
874 B
YAML
29 lines
874 B
YAML
name: Build Admin
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'admin/**'
|
|
- '.gitea/workflows/**'
|
|
|
|
jobs:
|
|
build:
|
|
# This label maps to the act-runner we deployed in K8s
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Dagger
|
|
run: |
|
|
curl -L https://dl.dagger.io/dagger/install.sh | sh
|
|
sudo mv bin/dagger /usr/local/bin/
|
|
|
|
- name: Login to Gitea Registry
|
|
# Gitea automatically injects GITEA_TOKEN into the runner for registry access
|
|
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.staging.jamkazam.com -u ${{ gitea.actor }} --password-stdin
|
|
|
|
- name: Build and Publish with Dagger
|
|
working-directory: ./admin
|
|
run: |
|
|
dagger call build-local --source=. publish --address=git.staging.jamkazam.com/seth/jam-cloud-admin:latest
|