Skip to content

nightly-edge

nightly-edge #2

Workflow file for this run

name: nightly-edge
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
permissions:
contents: read
packages: write
env:
DOTNET_NOLOGO: true
REGISTRY_IMAGE: ghcr.io/a5c-ai/agentpowershell
concurrency:
group: nightly-edge
cancel-in-progress: true
jobs:
validate:
name: nightly / validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Build and test
shell: bash
run: |
chmod +x eng/ci/test.sh
./eng/ci/test.sh
docker-edge:
name: nightly / docker-edge
runs-on: ubuntu-latest
needs:
- validate
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=edge
type=sha,format=long,prefix=edge-
- name: Build and push edge image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}