Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Oct 7, 2023
1 parent 16d14a8 commit 4b2b2ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- dev
- debug-*
paths:
- "apps/**"
- "configs/**"
Expand All @@ -14,16 +15,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: build code image
uses: elgohr/Publish-Docker-Github-Action@master
if: github.ref == 'refs/heads/dev'
with:
name: ehco1996/django-sspanel
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,code"
dockerfile: deploy/Dockerfile.CODE

- name: build debug code image
uses: elgohr/Publish-Docker-Github-Action@master
if: github.ref == 'refs/heads/debug'*
with:
name: ehco1996/django-sspanel
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down
1 change: 0 additions & 1 deletion configs/default/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
]



MIDDLEWARE = [
"django_prometheus.middleware.PrometheusBeforeMiddleware",
"corsheaders.middleware.CorsMiddleware",
Expand Down
2 changes: 0 additions & 2 deletions configs/development.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

from configs.default import * # noqa

# NOTE for django debug toolbar
Expand Down

0 comments on commit 4b2b2ce

Please sign in to comment.