28 lines
663 B
YAML
28 lines
663 B
YAML
name: Build Agent Image
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'tools/agent/Dockerfile'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Login to Forgejo Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: code.mnemo-cards.online
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
|
|
|
- name: Build and Push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: tools/agent
|
|
push: true
|
|
tags: code.mnemo-cards.online/${{ github.repository }}/agent:latest
|