added build
All checks were successful
Build and Push Image / build-and-push (push) Successful in 6m28s

This commit is contained in:
2026-03-10 22:46:11 -04:00
parent b7c00323e8
commit 5268c98cfe
4 changed files with 46 additions and 4 deletions

39
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: "Build and Push Image"
on:
push:
tags:
- "v*"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout 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: Dockerfile
context: .
push: true
tags: |
git.kaisei.app/amatsugu/azki:${{ env.VERSION }}
git.kaisei.app/amatsugu/azki:latest
build-args: VERSION=${{ env.VERSION }}