diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddfcbbeb..eadd69b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: jobs: lint: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v5 @@ -23,6 +24,7 @@ jobs: test: runs-on: ubuntu-latest + timeout-minutes: 10 services: postgres: diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 89661066..6f5f4bd3 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -9,6 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v5 @@ -18,18 +19,3 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - if: github.ref == 'refs/heads/main' && github.event_name == 'push' - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }} - tags: chriszhu12/canine:latest \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0cb21945..2f2f8a2a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,6 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v5 - name: Set up Docker Buildx diff --git a/Gemfile b/Gemfile index 6fab723d..c5a7131f 100644 --- a/Gemfile +++ b/Gemfile @@ -111,3 +111,7 @@ gem "sys-proctable", "~> 1.3" gem "omniauth-gitlab", "~> 4.1" gem "actioncable-enhanced-postgresql-adapter", "~> 1.0" + +gem 'flipper', '~> 1.2.2' +gem 'flipper-active_record', '~> 1.2.2' +gem 'flipper-ui', '~> 1.2.2' diff --git a/Gemfile.lock b/Gemfile.lock index 58e6aa2e..21da909a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -218,6 +218,17 @@ GEM ffi-compiler (1.3.2) ffi (>= 1.15.5) rake + flipper (1.2.2) + concurrent-ruby (< 2) + flipper-active_record (1.2.2) + activerecord (>= 4.2, < 8) + flipper (~> 1.2.2) + flipper-ui (1.2.2) + erubi (>= 1.0.0, < 2.0.0) + flipper (~> 1.2.2) + rack (>= 1.4, < 4) + rack-protection (>= 1.5.3, <= 4.0.0) + sanitize (< 7) friendly_id (5.5.1) activerecord (>= 4.0.0) fugit (1.11.1) @@ -521,6 +532,9 @@ GEM ffi (~> 1.12) logger rubyzip (2.4.1) + sanitize (6.1.3) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) sassc (2.4.0) ffi (~> 1.9) sassc-rails (2.1.2) @@ -645,6 +659,9 @@ DEPENDENCIES dotenv (~> 3.1) factory_bot_rails faker (~> 3.5.2) + flipper (~> 1.2.2) + flipper-active_record (~> 1.2.2) + flipper-ui (~> 1.2.2) friendly_id (~> 5.4) good_job (~> 4.0) httparty (~> 0.22.0) diff --git a/TODO.md b/TODO.md index 1a5dfc7c..9d2988e8 100644 --- a/TODO.md +++ b/TODO.md @@ -15,4 +15,4 @@ - [ ] Deployments API - [ ] Pull request preview apps - [ ] Update vocabulary on landing page -- [ ] Extend docker hub support to any arbitrary container registry +- [ ] Clear our historical logs \ No newline at end of file diff --git a/app/views/accounts/account_users/index.html.erb b/app/views/accounts/account_users/index.html.erb index 08417bad..695ebbd4 100644 --- a/app/views/accounts/account_users/index.html.erb +++ b/app/views/accounts/account_users/index.html.erb @@ -1,5 +1,5 @@ <%= content_for :title, "Users" %> -<%= turbo_stream_from :account_users %> +<%= turbo_stream_from [:account_users, current_account] %>