+ 环境变量
This commit is contained in:
parent
fb2c5c857e
commit
a1776be538
2 changed files with 11 additions and 13 deletions
21
.github/workflows/docker.yml
vendored
21
.github/workflows/docker.yml
vendored
|
|
@ -4,8 +4,9 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- "docker/README.md"
|
- ".github/workflows/docker.yml"
|
||||||
|
env:
|
||||||
|
VERSION: 0.9.1
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -30,37 +31,37 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: ./docker/development
|
context: ./docker/development
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=0.9.1
|
VERSION=${VERSION}
|
||||||
ARCH=amd64
|
ARCH=amd64
|
||||||
push: true
|
push: true
|
||||||
tags: yaoapp/yao:0.9.1-amd64-dev
|
tags: yaoapp/yao:${VERSION}-amd64-dev
|
||||||
|
|
||||||
- name: Build Development Arm64
|
- name: Build Development Arm64
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./docker/development
|
context: ./docker/development
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=0.9.1
|
VERSION=${VERSION}
|
||||||
ARCH=arm64
|
ARCH=arm64
|
||||||
push: true
|
push: true
|
||||||
tags: yaoapp/yao:0.9.1-arm64-dev
|
tags: yaoapp/yao:${VERSION}-arm64-dev
|
||||||
|
|
||||||
- name: Build Production
|
- name: Build Production
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./docker/production
|
context: ./docker/production
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=0.9.1
|
VERSION=${VERSION}
|
||||||
ARCH=amd64
|
ARCH=amd64
|
||||||
push: true
|
push: true
|
||||||
tags: yaoapp/yao:0.9.1-amd64
|
tags: yaoapp/yao:${VERSION}-amd64
|
||||||
|
|
||||||
- name: Build Production Arm64
|
- name: Build Production Arm64
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./docker/production
|
context: ./docker/production
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=0.9.1
|
VERSION=${VERSION}
|
||||||
ARCH=arm64
|
ARCH=arm64
|
||||||
push: true
|
push: true
|
||||||
tags: yaoapp/yao:0.9.1-arm64
|
tags: yaoapp/yao:${VERSION}-arm64
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
# Version
|
|
||||||
|
|
||||||
v0.9.1
|
|
||||||
Loading…
Add table
Reference in a new issue