From 09e886958fb1e6aaecf8e92809158f7604f664b5 Mon Sep 17 00:00:00 2001 From: smilerz Date: Tue, 31 Aug 2021 16:58:00 -0500 Subject: [PATCH] restrict dev docker builds to vabene1111 --- .github/workflows/ci.yml | 2 +- .github/workflows/codeql-analysis.yml | 3 +- .github/workflows/docker-publish-beta.yml | 1 + .github/workflows/docker-publish-dev.yml | 1 + .github/workflows/docker-publish-latest.yml | 1 + .github/workflows/docker-publish-release.yml | 1 + .github/workflows/docs.yml | 1 + .../migrations/0151_auto_20210831_1610.py | 34 +++++++++++++++++++ 8 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 cookbook/migrations/0151_auto_20210831_1610.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1aa68a27..54d5221e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: [push] jobs: build: - + if: github.repository_owner == 'vabene1111' runs-on: ubuntu-latest strategy: max-parallel: 4 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bd45ab21..ebb8381c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,9 +8,8 @@ on: jobs: CodeQL-Build: - + if: github.repository_owner == 'vabene1111' runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v2 diff --git a/.github/workflows/docker-publish-beta.yml b/.github/workflows/docker-publish-beta.yml index 18387750..83b8b12d 100644 --- a/.github/workflows/docker-publish-beta.yml +++ b/.github/workflows/docker-publish-beta.yml @@ -5,6 +5,7 @@ on: - 'beta' jobs: build: + if: github.repository_owner == 'vabene1111' runs-on: ubuntu-latest steps: - uses: actions/checkout@master diff --git a/.github/workflows/docker-publish-dev.yml b/.github/workflows/docker-publish-dev.yml index f6a14c3e..2c257836 100644 --- a/.github/workflows/docker-publish-dev.yml +++ b/.github/workflows/docker-publish-dev.yml @@ -7,6 +7,7 @@ on: - '!master' jobs: build: + if: github.repository_owner == 'vabene1111' runs-on: ubuntu-latest steps: - uses: actions/checkout@master diff --git a/.github/workflows/docker-publish-latest.yml b/.github/workflows/docker-publish-latest.yml index cb320859..3b786e78 100644 --- a/.github/workflows/docker-publish-latest.yml +++ b/.github/workflows/docker-publish-latest.yml @@ -6,6 +6,7 @@ on: jobs: build: + if: github.repository_owner == 'vabene1111' runs-on: ubuntu-latest steps: - uses: actions/checkout@master diff --git a/.github/workflows/docker-publish-release.yml b/.github/workflows/docker-publish-release.yml index 665625d5..92b447ff 100644 --- a/.github/workflows/docker-publish-release.yml +++ b/.github/workflows/docker-publish-release.yml @@ -7,6 +7,7 @@ on: jobs: build: + if: github.repository_owner == 'vabene1111' runs-on: ubuntu-latest name: Build image job steps: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e8a5833b..3e01d116 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,6 +7,7 @@ on: jobs: deploy: + if: github.repository_owner == 'vabene1111' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/cookbook/migrations/0151_auto_20210831_1610.py b/cookbook/migrations/0151_auto_20210831_1610.py new file mode 100644 index 00000000..a98c0ee8 --- /dev/null +++ b/cookbook/migrations/0151_auto_20210831_1610.py @@ -0,0 +1,34 @@ +# Generated by Django 3.2.6 on 2021-08-31 21:10 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0150_food_to_tree'), + ] + + operations = [ + migrations.RemoveIndex( + model_name='cooklog', + name='cookbook_co_id_37485a_idx', + ), + migrations.RemoveIndex( + model_name='viewlog', + name='cookbook_vi_recipe__5cd178_idx', + ), + migrations.AlterField( + model_name='userpreference', + name='search_style', + field=models.CharField(choices=[('SMALL', 'Small'), ('LARGE', 'Large'), ('NEW', 'New')], default='NEW', max_length=64), + ), + migrations.AddIndex( + model_name='cooklog', + index=models.Index(fields=['id', 'recipe', '-created_at', 'rating', 'created_by'], name='cookbook_co_id_93d841_idx'), + ), + migrations.AddIndex( + model_name='viewlog', + index=models.Index(fields=['recipe', '-created_at', 'created_by'], name='cookbook_vi_recipe__1b051f_idx'), + ), + ]