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
6 changed files with 14 additions and 0 deletions

View File

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

View File

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

View File

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

3
.gitignore vendored
View File

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

View File

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