From 4ecd2afb51efd2c8b6d175e9bab10fd47711c6c4 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 27 Aug 2024 22:53:28 -0700 Subject: [PATCH] Added build for cloud. --- .github/workflows/cd-cloud.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/cd-cloud.yml diff --git a/.github/workflows/cd-cloud.yml b/.github/workflows/cd-cloud.yml new file mode 100644 index 00000000..e0b4ed57 --- /dev/null +++ b/.github/workflows/cd-cloud.yml @@ -0,0 +1,30 @@ +name: Create docker images + +on: + push: + branches: + - analytics + +jobs: + build: + name: Build, push, and deploy + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Generate random hash + id: random_hash + run: echo "hash=$(openssl rand -hex 4)" >> $GITHUB_OUTPUT + + - uses: mr-smithers-excellent/docker-build-push@v6 + name: Build & push Docker image to ghcr.io + with: + image: umami + tags: cloud-${{ steps.random_hash.outputs.hash }}, cloud-latest + buildArgs: DATABASE_TYPE=postgresql + registry: ghcr.io + multiPlatform: true + platform: linux/amd64,linux/arm64 + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }}