initial a2a-pack
This commit is contained in:
22
.gitea/workflows/build.yml
Normal file
22
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- 'deploy/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: build base image
|
||||
run: |
|
||||
IMG=registry.127-0-0-1.nip.io/a2a/a2a-pack-base
|
||||
VERSION=$(grep '^version' pyproject.toml | head -1 | cut -d'"' -f2)
|
||||
docker build -t $IMG:$VERSION -t $IMG:${{ github.sha }} -t $IMG:latest .
|
||||
docker push $IMG:$VERSION
|
||||
docker push $IMG:${{ github.sha }}
|
||||
docker push $IMG:latest
|
||||
echo "pushed a2a-pack-base:$VERSION (and :latest, :${{ github.sha }})"
|
||||
Reference in New Issue
Block a user