mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-16 08:46:48 +00:00
Update Docker image publishing in CI workflow
This commit is contained in:
parent
93602e9fce
commit
2947d03b6f
13
.github/workflows/publish_docker_images.yml
vendored
13
.github/workflows/publish_docker_images.yml
vendored
@ -31,12 +31,6 @@ jobs:
|
||||
echo "aster_version=$ASTER_VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "rust_version=$RUST_VERSION" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Generate Dockerfile
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3-jinja2
|
||||
python3 ./tools/docker/gen_dockerfile.py
|
||||
|
||||
- name: Build and push development image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
@ -48,20 +42,17 @@ jobs:
|
||||
build-args: |
|
||||
"ASTER_RUST_VERSION=${{ steps.fetch-versions.outputs.rust_version }}"
|
||||
|
||||
- name: Generate Dockerfile for Intel TDX
|
||||
run: |
|
||||
python3 ./tools/docker/gen_dockerfile.py --intel-tdx
|
||||
|
||||
- name: Build and push development image for Intel TDX
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./tools/docker/Dockerfile
|
||||
file: ./tools/docker/tdx/Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: asterinas/asterinas:${{ steps.fetch-versions.outputs.aster_version }}-tdx
|
||||
build-args: |
|
||||
"ASTER_RUST_VERSION=${{ steps.fetch-versions.outputs.rust_version }}"
|
||||
"BASE_VERSION=${{ steps.fetch-versions.outputs.aster_version }}"
|
||||
|
||||
- name: Generate OSDK Dockerfile
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user