-
Notifications
You must be signed in to change notification settings - Fork 963
32 lines (32 loc) · 898 Bytes
/
code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: code
on:
push:
branches:
- master
- dev
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
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
with:
name: ehco1996/django-sspanel
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "debug"
dockerfile: deploy/Dockerfile.DEBUG-CODE