From 90a4b4df61a7af013a57e73cde86265e329955fc Mon Sep 17 00:00:00 2001 From: LA_DI_DA <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Wed, 22 May 2024 11:02:16 +0800 Subject: [PATCH] add(actions): build and push alas runtime image --- .github/workflows/docker.yaml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/docker.yaml diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 000000000..26b815be3 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -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 \ No newline at end of file