summaryrefslogtreecommitdiffstats
path: root/.github/workflows/publish-workflow.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/publish-workflow.yaml')
-rw-r--r--.github/workflows/publish-workflow.yaml18
1 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/publish-workflow.yaml b/.github/workflows/publish-workflow.yaml
index bfc0b735..67d9dc53 100644
--- a/.github/workflows/publish-workflow.yaml
+++ b/.github/workflows/publish-workflow.yaml
@@ -37,7 +37,21 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
- - name: Build and push image
+ - name: Build and push small images
+ uses: docker/build-push-action@v5
+ with:
+ context: .
+ file: docker/Dockerfile-slim
+ platforms: linux/amd64,linux/arm64
+ push: true
+ tags: |
+ hlohaus789/g4f:latest-slim
+ hlohaus789/g4f:${{ github.ref_name }}-slim
+ labels: ${{ steps.metadata.outputs.labels }}
+ build-args: |
+ G4F_VERSION=${{ github.ref_name }}
+
+ - name: Build and push big images
uses: docker/build-push-action@v5
with:
context: .
@@ -47,4 +61,4 @@ jobs:
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
build-args: |
- G4F_VERSION=${{ github.ref_name }}
+ G4F_VERSION=${{ github.ref_name }} \ No newline at end of file