diff --git a/.build/docker/docker-entrypoint.sh b/.build/docker/docker-entrypoint.sh deleted file mode 100644 index 8d64382..0000000 --- a/.build/docker/docker-entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -if [ -f "/app/config.json" ] && [ -f "/app/data-proxy-private-key.json" ]; then - echo "Config and private key files found. Running with specific configuration." - exec ./dataproxy run --config /app/config.json --private-key-file /app/data-proxy-private-key.json "$@" -else - echo "Config or private key file not found. Running with default configuration." - exec ./dataproxy run "$@" -fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f965794..755aab6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,20 @@ jobs: build-and-push: name: 🐳 Build and Push Docker Image runs-on: ubuntu-latest + strategy: + matrix: + target_arch: + - bun-linux-x64-modern + - bun-linux-arm64 + - bun-darwin-arm64 + include: + - target_arch: bun-linux-x64-modern + platform: linux/amd64 + - target_arch: bun-linux-arm64 + platform: linux/arm64 + - target_arch: bun-darwin-arm64 + platform: darwin/arm64 + steps: - name: 📥 Checkout code uses: actions/checkout@v4 @@ -49,9 +63,21 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build-args: | + TARGET_ARCH=${{ matrix.target_arch }} + platforms: ${{ matrix.platform }} cache-from: type=gha cache-to: type=gha,mode=max + - name: ✨ Save image details + run: echo "${{ steps.meta.outputs.tags }}" > image-details.txt + + - name: 📦 Upload image details as artifact + uses: actions/upload-artifact@v3 + with: + name: image-details + path: image-details.txt + create-release: name: 📦 Create GitHub Release needs: build-and-push @@ -71,10 +97,24 @@ jobs: skip-git-pull: true git-push: false + - name: 🔽 Download image details artifact + uses: actions/download-artifact@v3 + with: + name: image-details + path: ./image-details.txt + - name: 🎉 Create GitHub Release uses: ncipollo/release-action@v1 with: allowUpdates: true generateReleaseNotes: true - body: ${{ steps.changelog.outputs.changelog }} + body: | + ${{ steps.changelog.outputs.changelog }} + + ## Docker Images + The following Docker images were built and published: + ``` + ${{ steps.changelog.outputs.changelog }} + ${{ steps.release.outputs.uploaded }} + ``` token: ${{ secrets.GITHUB_TOKEN }}