1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:09:25 +08:00

add(actions): build and push alas runtime image

This commit is contained in:
LA_DI_DA
2024-05-22 11:02:16 +08:00
parent 335b0c4712
commit 90a4b4df61

38
.github/workflows/docker.yaml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: docker
on:
workflow_dispatch:
push:
branches:
- "smallkai"
paths:
- "deploy/docker/requirements.txt"
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: "smallkai"
- name: set up QEMU
uses: docker/setup-qemu-action@v3
- name: set up docker buildx
uses: docker/setup-buildx-action@v3
- name: login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: prep docker file
run: |
rm -rf requirements.txt
cp deploy/docker/requirements.txt .
cp deploy/docker/Dockerfile .
cp deploy/docker/.dockerignore .
ls
- name: build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/alas:latest