-
Notifications
You must be signed in to change notification settings - Fork 965
44 lines (39 loc) · 1.1 KB
/
runtime.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
33
34
35
36
37
38
39
40
41
42
43
44
name: build-runtime-image
on:
push:
branches:
- build
- master
- dev
paths:
- "pyproject.toml"
- "deploy/Dockerfile.RUNTIME"
workflow_dispatch:
jobs:
build-runtime:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: set up qemu
uses: docker/setup-qemu-action@v2
- name: set up docker buildx
uses: docker/setup-buildx-action@v2
- name: login to docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build & push runtime image
uses: docker/build-push-action@v4
with:
push: true
tags: ehco1996/django-sspanel:runtime
file: deploy/Dockerfile.RUNTIME
platforms: linux/amd64,linux/arm64
- name: build & push nginx image
uses: docker/build-push-action@v4
with:
push: true
tags: ehco1996/django-sspanel:nginx
file: deploy/Dockerfile.NGINX
platforms: linux/amd64,linux/arm64