mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 07:06:47 +00:00
ci: auto build docker images (#960)
This commit is contained in:
parent
415e46ea47
commit
056c4aad81
@ -5,6 +5,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- tools/BUILD_CONTAINER_VERSION
|
- tools/BUILD_CONTAINER_VERSION
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
@ -30,8 +32,8 @@ jobs:
|
|||||||
- name: Build and push docker image
|
- name: Build and push docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: "{{defaultContext}}:tools"
|
||||||
file: ./tools/Dockerfile
|
file: Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: dragonos/dragonos-dev:${{ steps.fetch-versions.outputs.build_container_version }}
|
tags: dragonos/dragonos-dev:${{ steps.fetch-versions.outputs.build_container_version }}
|
||||||
|
@ -2,6 +2,8 @@ FROM ubuntu:jammy
|
|||||||
|
|
||||||
# 设置环境变量
|
# 设置环境变量
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
|
ENV RUSTUP_DIST_SERVER=https://static.rust-lang.org
|
||||||
|
ENV RUSTUP_UPDATE_ROOT=https://static.rust-lang.org/rustup
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
# 设置工作目录
|
# 设置工作目录
|
||||||
|
Loading…
x
Reference in New Issue
Block a user