From 9a8bac69f3dfc7d18f8ecb20bb937715aad18394 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Fri, 3 Jan 2025 09:59:32 -0800 Subject: [PATCH] chore(ci): converts uikit workflow to forge --- .../flutter-uikit-example-firebase-deploy.yml | 31 ++++++------------- .../utilities/uikit_example/blueprint.cue | 9 ++++++ 2 files changed, 18 insertions(+), 22 deletions(-) create mode 100644 catalyst_voices/utilities/uikit_example/blueprint.cue diff --git a/.github/workflows/flutter-uikit-example-firebase-deploy.yml b/.github/workflows/flutter-uikit-example-firebase-deploy.yml index 13315438cbb..b1b888859b2 100644 --- a/.github/workflows/flutter-uikit-example-firebase-deploy.yml +++ b/.github/workflows/flutter-uikit-example-firebase-deploy.yml @@ -2,7 +2,7 @@ name: UIKit Flutter Example Firebase Hosting Deploy on: push: - branches: "main" + #branches: "main" permissions: contents: write @@ -13,38 +13,25 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} cancel-in-progress: true -env: - AWS_REGION: eu-central-1 - AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci - EARTHLY_TARGET: docker - ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com - jobs: deploy-uikit-example: name: Deploy UIKit example on Firebase Hosting runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - - name: Setup CI - uses: input-output-hk/catalyst-ci/actions/setup@master + - name: Install Forge + uses: input-output-hk/catalyst-forge/actions/install@ci/v1.5.0 with: - aws_role_arn: ${{ env.AWS_ROLE_ARN }} - aws_region: ${{ env.AWS_REGION }} - earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }} - + version: 0.8.0 + - name: Setup CI + uses: input-output-hk/catalyst-forge/actions/setup@ci/v1.5.0 - name: Build Flutter Web - uses: input-output-hk/catalyst-ci/actions/run@master + uses: input-output-hk/catalyst-forge/actions/run@ci/v1.5.0 if: always() continue-on-error: true with: - earthfile: ./catalyst_voices/utilities/uikit_example - flags: --allow-privileged - targets: local-build-web - target_flags: - runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} - artifact: "false" - + command: run + args: ./catalyst_voices/utilities/uikit_example+local-build-web - uses: FirebaseExtended/action-hosting-deploy@v0 with: firebaseServiceAccount: "${{ secrets.UIKIT_FIREBASE_SERVICE_ACCOUNT }}" diff --git a/catalyst_voices/utilities/uikit_example/blueprint.cue b/catalyst_voices/utilities/uikit_example/blueprint.cue new file mode 100644 index 00000000000..46fd95ee859 --- /dev/null +++ b/catalyst_voices/utilities/uikit_example/blueprint.cue @@ -0,0 +1,9 @@ +version: "1.0.0" +project: { + name: "uikit-example" + ci: targets: { + "local-build-web": { + privileged: true + } + } +}