Compare commits
3 Commits
v0.2.25020
...
v0.3.25020
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c6db02e57 | |||
| d6cd731a2a | |||
| ed4d845b12 |
@@ -34,6 +34,7 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
- name: Deploy to production server
|
- name: Deploy to production server
|
||||||
run: |
|
run: |
|
||||||
|
echo "${{ github.ref_name }} - ${{ github.run_number }}"
|
||||||
TOKEN=$(curl --silent --location 'https://auth.makecodes.dev/auth' \
|
TOKEN=$(curl --silent --location 'https://auth.makecodes.dev/auth' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--data '{
|
--data '{
|
||||||
@@ -45,21 +46,11 @@ jobs:
|
|||||||
--header "Authorization: Bearer $TOKEN" \
|
--header "Authorization: Bearer $TOKEN" \
|
||||||
--data '{
|
--data '{
|
||||||
"image": "docker.nexus.makecodes.dev/mines/backend",
|
"image": "docker.nexus.makecodes.dev/mines/backend",
|
||||||
"service": "nfe-vision_app",
|
"service": "mines_backend",
|
||||||
"version": "${{ github.ref_name }}",
|
"version": "${{ github.ref_name }}",
|
||||||
"pipeline": "${{ github.run_number }}",
|
"pipeline": "${{ github.run_number }}",
|
||||||
"repository": "mines/backend"
|
"repository": "mines/backend"
|
||||||
}'
|
}'
|
||||||
# curl --location --silent 'https://deployer.makecodes.dev/deploy' \
|
|
||||||
# --header 'Content-Type: application/json' \
|
|
||||||
# --header "Authorization: Bearer $TOKEN" \
|
|
||||||
# --data '{
|
|
||||||
# "image": "docker.nexus.makecodes.dev/makecodes/nfe-vision",
|
|
||||||
# "service": "nfe-vision_worker",
|
|
||||||
# "version": "${{ github.ref_name }}",
|
|
||||||
# "pipeline": "${{ github.run_number }}",
|
|
||||||
# "repository": "makecodes/nfe-vision"
|
|
||||||
# }'
|
|
||||||
env:
|
env:
|
||||||
USERNAME: ${{ secrets.SERVER_AUTH_USERNAME }}
|
USERNAME: ${{ secrets.SERVER_AUTH_USERNAME }}
|
||||||
PASSWORD: ${{ secrets.SERVER_AUTH_PASSWORD }}
|
PASSWORD: ${{ secrets.SERVER_AUTH_PASSWORD }}
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
from django.conf import settings
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', include('api.urls')),
|
path('', include('api.urls')),
|
||||||
]
|
|
||||||
|
|
||||||
# We need this only for development purpose
|
|
||||||
if settings.DEBUG is True:
|
|
||||||
urlpatterns += [
|
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user