Skip to content

update ci

update ci #233

Workflow file for this run

name: code
on:
push:
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'
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'*

Check failure on line 31 in .github/workflows/code.yml

View workflow run for this annotation

GitHub Actions / code

Invalid workflow file

The workflow is not valid. .github/workflows/code.yml (Line: 31, Col: 13): Unexpected symbol: '*'. Located at position 33 within expression: 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