Skip to content

debug cors

debug cors #235

Workflow file for this run

name: code
on:
push:
branches:
- master
- dev
- debug-*
paths:
- "apps/**"
- "configs/**"
- "templates/**"
pull_request:
branches:
- master
- dev
- debug-*
paths:
- "apps/**"
- "configs/**"
- "templates/**"
workflow_dispatch:
jobs:
build-code:
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' || startsWith(github.ref, 'refs/heads/debug-')
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: startsWith(github.ref, 'refs/heads/debug-')
with:
name: ehco1996/django-sspanel
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "debug"
dockerfile: deploy/Dockerfile.DEBUG-CODE