Files
xunlian/.gitea/workflows/ci.yml
T
2026-08-18 17:31:17 +08:00

32 lines
692 B
YAML

name: CI
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
docker:
runs-on: runner
env:
NAME: lone/xunlian
steps:
- name: Checkout
uses: https://git.ailuowan.com/deploy/checkout@v4
- name: Login Registry
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ vars.REGISTRY }} -u "${{ vars.REGISTRY_USERNAME }}" --password-stdin
- name: Docker build
run: |
docker buildx build --load \
-f Dockerfile \
-t ${{ vars.REGISTRY }}/$NAME:latest \
.
- name: Docker push
run: |
docker push ${{ vars.REGISTRY }}/$NAME:latest