mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
ci: auto build docker images (#960)
This commit is contained in:
parent
415e46ea47
commit
056c4aad81
@ -5,6 +5,8 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- tools/BUILD_CONTAINER_VERSION
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
@ -30,8 +32,8 @@ jobs:
|
||||
- name: Build and push docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./tools/Dockerfile
|
||||
context: "{{defaultContext}}:tools"
|
||||
file: Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: dragonos/dragonos-dev:${{ steps.fetch-versions.outputs.build_container_version }}
|
||||
|
@ -2,6 +2,8 @@ FROM ubuntu:jammy
|
||||
|
||||
# 设置环境变量
|
||||
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
|
||||
|
||||
# 设置工作目录
|
||||
|
Loading…
x
Reference in New Issue
Block a user