Files
AobaV2/.github/workflows/release.yaml
Amatsugu 165adb2775
All checks were successful
Build and Push Image / build-and-push (push) Successful in 6m21s
added woodpecker, updated build to update latest
2025-08-13 21:48:08 -04:00

40 lines
1.1 KiB
YAML

name: "Build and Push Image"
on:
push:
tags:
- "v*"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkou code
uses: actions/checkout@v4
- name: Set up Docker Build
uses: docker/setup-buildx-action@v3
- name: Login
uses: docker/login-action@v3
with:
registry: git.kaisei.app
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Extract tag version
id: extract_tag
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build and Push
uses: docker/build-push-action@v5
with:
file: AobaServer/Dockerfile
context: .
push: true
tags: |
git.kaisei.app/amatsugu/aoba:${{ env.VERSION }}
git.kaisei.app/amatsugu/aoba:latest
build-args: VERSION=${{ env.VERSION }}