-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Mihálik
committed
Jun 9, 2024
1 parent
b53f20f
commit c822469
Showing
25 changed files
with
951 additions
and
44 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
.github/workflows/deploy.yml → .github/workflows/deploy-test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: deploy | ||
name: Deploy Test Environment | ||
|
||
on: workflow_dispatch | ||
on: push | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: wshihadeh/docker-deployment-action@v2 | ||
with: | ||
remote_docker_host: [email protected] | ||
ssh_private_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PRIVATE_KEY }} | ||
ssh_public_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PUBLIC_KEY }} | ||
stack_file_name: compose.yaml | ||
stack_file_name: deployment/compose-test.yaml | ||
args: up --build --force-recreate --detach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Migrate Test Environment | ||
|
||
on: push | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wshihadeh/docker-deployment-action@v2 | ||
with: | ||
remote_docker_host: [email protected] | ||
ssh_private_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PRIVATE_KEY }} | ||
ssh_public_key: ${{ secrets.WEBSTROM_DEPLOY_SSH_PUBLIC_KEY }} | ||
stack_file_name: deployment/compose-test.yaml | ||
args: run webstrom-backend python manage.py migrate --noinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Generated by Django 4.2.11 on 2024-04-14 09:24 | ||
|
||
import base.models | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('sites', '0002_alter_domain_unique'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='InfoBanner', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('visible_after', models.DateTimeField(verbose_name='Zobrazuj od')), | ||
('visible_until', models.DateTimeField(verbose_name='Zobrazuj do')), | ||
('message', models.CharField(help_text='Správa sa zobrazí v baneri. Správa musí byť stručná - jedna krátka veta.', max_length=200, verbose_name='správa')), | ||
], | ||
options={ | ||
'verbose_name': 'Informácia v pohyblivom baneri', | ||
'verbose_name_plural': 'Informácie v pohyblivom baneri', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Logo', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=150, verbose_name='názov loga')), | ||
('disabled', models.BooleanField()), | ||
('image', base.models.RestrictedFileField(upload_to='logo_images/', verbose_name='Logo')), | ||
], | ||
options={ | ||
'verbose_name': 'logo', | ||
'verbose_name_plural': 'logá', | ||
'ordering': ['name'], | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='MessageTemplate', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='Pomenovanie generickej správy. Slúži pre orientáciu', max_length=50, verbose_name='Názov')), | ||
('message', models.CharField(help_text='Generické správy pre banner a posty', max_length=200, verbose_name='Generická správa')), | ||
('is_active', models.BooleanField(default=True, verbose_name='Aktívna')), | ||
], | ||
options={ | ||
'verbose_name': 'Generické správy pre banner a posty', | ||
'verbose_name_plural': 'Generické správy pre banner a posty', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Post', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('visible_after', models.DateTimeField(verbose_name='Zobrazuj od')), | ||
('visible_until', models.DateTimeField(verbose_name='Zobrazuj do')), | ||
('caption', models.CharField(max_length=50, verbose_name='nadpis')), | ||
('short_text', models.CharField(help_text='Krátky 1-2 vetový popis.', max_length=200, verbose_name='krátky text')), | ||
('details', models.TextField(blank=True, help_text='Dlhší text, ktorý sa zobrazí po rozkliknutí.', verbose_name='podrobnosti k príspevku')), | ||
('added_at', models.DateTimeField(auto_now_add=True, verbose_name='pridané')), | ||
('sites', models.ManyToManyField(to='sites.site')), | ||
], | ||
options={ | ||
'verbose_name': 'príspevok', | ||
'verbose_name_plural': 'príspevky', | ||
'ordering': ['-added_at'], | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='PostLink', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('caption', models.CharField(help_text='Nápis, ktorý po kliknutí presmeruje na link. Maximálne 2 slová.', max_length=25, verbose_name='názov')), | ||
('url', models.CharField(help_text='URL stránky kam má preklik viesť', max_length=100, verbose_name='URL')), | ||
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='links', to='cms.post', verbose_name='Relevantný príspevok')), | ||
], | ||
options={ | ||
'verbose_name': 'link k príspevku', | ||
'verbose_name_plural': 'linky k príspevkom', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='MenuItem', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('caption', models.CharField(help_text='Nápis, ktorý sa zobrazí v menu. Maximálne 2 slová.', max_length=25, verbose_name='názov')), | ||
('url', models.CharField(help_text='URL stránky kam má preklik viesť', max_length=100, verbose_name='URL')), | ||
('priority', models.SmallIntegerField(help_text='Priorita, čím väčšie, tým vyššie v menu.', verbose_name='priorita')), | ||
('in_footer', models.BooleanField(default=False, verbose_name='Je v pätičke')), | ||
('in_menu', models.BooleanField(default=True, verbose_name='Je v menu')), | ||
('sites', models.ManyToManyField(to='sites.site')), | ||
], | ||
options={ | ||
'verbose_name': 'položka v menu', | ||
'verbose_name_plural': 'položky v menu', | ||
'ordering': ['-priority'], | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 4.2.11 on 2024-04-14 09:24 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('flatpages', '0001_initial'), | ||
('cms', '0001_initial'), | ||
('competition', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='infobanner', | ||
name='event', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='competition.event'), | ||
), | ||
migrations.AddField( | ||
model_name='infobanner', | ||
name='message_template', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='cms.messagetemplate'), | ||
), | ||
migrations.AddField( | ||
model_name='infobanner', | ||
name='page', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='flatpages.flatpage'), | ||
), | ||
migrations.AddField( | ||
model_name='infobanner', | ||
name='series', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='competition.series'), | ||
), | ||
] |
Oops, something went wrong.