mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:05:39 +08:00
ci: Only build docker image once.
This commit is contained in:
committed by
Xiang Xiao
parent
1ab8b921f6
commit
9889b4b5c6
@@ -57,14 +57,9 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build Linux image
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: tools/ci/docker/linux
|
||||
load: true
|
||||
tags: ${{ env.IMAGE_TAG }}
|
||||
|
||||
- name: Pre-build Disk Stats
|
||||
run: |
|
||||
df -h
|
||||
- name: Push Linux image
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
@@ -72,3 +67,7 @@ jobs:
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.ref == 'refs/heads/master' }}
|
||||
tags: ${{ env.IMAGE_TAG }}
|
||||
- name: Post-build Disk Stats
|
||||
if: always()
|
||||
run: |
|
||||
df -h
|
||||
|
||||
Reference in New Issue
Block a user