From 8531c7f9b551d246e0be15510b52d648da1677cd Mon Sep 17 00:00:00 2001 From: Chris Grimmett Date: Wed, 20 Mar 2024 21:29:45 -0800 Subject: [PATCH] try gitea actions --- .gitea/workflows/demo.yaml | 19 +++++++++++++ .npmrc | 2 ++ Tiltfile | 58 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/demo.yaml create mode 100644 .npmrc diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml new file mode 100644 index 0000000..d67ac59 --- /dev/null +++ b/.gitea/workflows/demo.yaml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..36b5038 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +# we are giving every package their own lockfile to keep the docker build process fast +shared-workspace-lockfile=false \ No newline at end of file diff --git a/Tiltfile b/Tiltfile index b83204e..4f64cb7 100644 --- a/Tiltfile +++ b/Tiltfile @@ -6,15 +6,69 @@ k8s_yaml(helm( values=['./charts/fp/values-dev.yaml'], )) - docker_build('fp/link2cid', './packages/link2cid') +docker_build( + 'fp/strapi', + './packages/strapi', + dockerfile="prod.dockerfile" + # live_update=[ + # sync('./packages/strapi', '/app') + # ] +) + + +## Uncomment the following for fp/next in dev mode +## this is useful for changing the UI and seeing results +docker_build( + 'fp/next', + './packages/next', + target='dev', + live_update=[ + sync('./packages/next', '/app') + ] +) + +## Uncomment the following for fp/next in production mode +## this is useful to test how fp/next will behave in production environment +## note: there is no live_update here. expect slow rebuilds in response to code changes +# docker_build('fp/next', './packages/next') k8s_resource( workload='link2cid-pod', - port_forwards=3939 + port_forwards=3939, + links=[ + link('http://localhost:3939/health', 'link2cid Health') + ] ) +k8s_resource( + workload='ipfs-pod', + port_forwards=['5001'], + links=[ + link('http://localhost:5001/webui', 'IPFS Web UI') + ] +) + +k8s_resource( + workload='next-pod', + port_forwards=['3000'], +) + +k8s_resource( + workload='pgadmin-pod', + port_forwards=['5050'] +) + +k8s_resource( + workload='strapi-pod', + port_forwards=['1337'], + links=[ + link('http://localhost:1337/admin', 'Strapi Admin UI') + ] +) + + # v1alpha1.extension_repo(name='default', url='https://github.com/tilt-dev/tilt-extensions') # v1alpha1.extension(name='ngrok', repo_name='default', repo_path='ngrok')