File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 25
25
test_toolchain :
26
26
type : boolean
27
27
default : false
28
+ upload_ubuntu_image :
29
+ type : boolean
30
+ default : false
28
31
29
32
host_platform :
30
33
type : string
@@ -112,3 +115,16 @@ jobs:
112
115
SOURCE_BRANCH: ${{ github.ref }}
113
116
NO_PULL_IMAGE: true
114
117
DOCKER_IMAGE: localhost:5000/envoy-build-${{ inputs.distro }}
118
+
119
+ - run : |
120
+ sudo mkdir -p /mnt/cache
121
+ sudo mount -t tmpfs none /mnt/cache
122
+ docker save envoyproxy/envoy-build-ubuntu:${{ steps.container.outputs.tag }} \
123
+ | zstd - -q -T0 -o /mnt/cache/envoy-build-ubuntu-${{ steps.container.outputs.tag }}.tar.zst
124
+ if: ${{ inputs.upload_ubuntu_image }}
125
+ shell: bash
126
+ - uses : actions/upload-artifact@v3
127
+ if : ${{ inputs.upload_ubuntu_image }}
128
+ with :
129
+ name : envoy-build-ubuntu
130
+ path : /mnt/cache/envoy-build-ubuntu-${{ steps.container.outputs.tag }}.tar.zst
Original file line number Diff line number Diff line change 46
46
os_family : ${{ matrix.os_family != '' && matrix.os_family || 'linux' }}
47
47
host_platform : ${{ matrix.host_platform != '' && matrix.host_platform || 'ubuntu-22.04' }}
48
48
test_toolchain : ${{ github.event_name == 'pull_request' && matrix.target != 'centos' }}
49
+ upload_ubuntu_image : ${{ github.event_name == 'pull_request' && matrix.target == 'ubuntu' }}
49
50
secrets :
50
51
dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
51
52
dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
You can’t perform that action at this time.
0 commit comments