ci: Only build docker image once.

This commit is contained in:
Brennan Ashton 2022-10-15 20:05:28 -07:00 committed by Xiang Xiao
parent 1ab8b921f6
commit 9889b4b5c6

View file

@ -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