fix: add robots.txt dependant on the environment

This commit is contained in:
Karol Sójko 2021-10-26 08:56:23 +02:00
parent 2fa7fcb27d
commit c1e3d32e16
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0
6 changed files with 14 additions and 0 deletions

View file

@ -34,6 +34,9 @@ jobs:
- name: Initiate submodules
run: git submodule update --init
- name: Copy robots.txt
run: cp public/robots.txt.development public/robots.txt
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:

View file

@ -38,6 +38,9 @@ jobs:
- name: Initiate submodules
run: git submodule update --init
- name: Copy robots.txt
run: cp public/robots.txt.development public/robots.txt
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:

View file

@ -38,6 +38,9 @@ jobs:
- name: Initiate submodules
run: git submodule update --init
- name: Copy robots.txt
run: cp public/robots.txt.production public/robots.txt
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:

3
.gitignore vendored
View file

@ -32,6 +32,9 @@ dump.rdb
# Ignore compiled assets
/public/assets
# Ignore robots.txt - generated before image creation
/public/robots.txt
# Ignore user uploads
/public/uploads/*
!/public/uploads/.keep

View file

@ -0,0 +1,2 @@
User-agent: *
Disallow: /