Skip to content

Commit

Permalink
ci: auto build docker images (DragonOS-Community#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
fslongjin authored and BrahmaMantra committed Dec 9, 2024
1 parent 32b9a19 commit fff7478
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-dragonos-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
paths:
- tools/BUILD_CONTAINER_VERSION
branches:
- master

jobs:
docker:
Expand All @@ -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 changes: 2 additions & 0 deletions tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

# 设置工作目录
Expand Down

0 comments on commit fff7478

Please sign in to comment.