diff --git a/.github/workflows/sushi30-docker.yml b/.github/workflows/sushi30-docker.yml new file mode 100644 index 000000000..887d22f48 --- /dev/null +++ b/.github/workflows/sushi30-docker.yml @@ -0,0 +1,49 @@ +name: 🐳 Build & Push Docker Image (sushi30) + +on: + push: + branches: ["sushi30"] + +env: + REGISTRY: ghcr.io + IMAGE_NAME: sushi30/picoclaw + +jobs: + build: + name: 🏗️ Build & Push + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: 📥 Checkout repository + uses: actions/checkout@v6 + + - name: 🔧 Set up Docker Buildx + uses: docker/setup-buildx-action@v4 + + - name: 🔑 Login to GitHub Container Registry + uses: docker/login-action@v4 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: 🏷️ Compute short SHA + id: sha + shell: bash + run: echo "short=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" + + - name: 🚀 Build and push Docker image + uses: docker/build-push-action@v7 + with: + context: . + file: docker/Dockerfile + push: true + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sushi30 + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ steps.sha.outputs.short }} + cache-from: type=gha + cache-to: type=gha,mode=max + platforms: linux/amd64