File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build test images
2+ on :
3+ push :
4+ branches :
5+ - " main"
6+ pull_request : {}
7+
8+ env :
9+ IMAGE_NAME_E2E : crc-e2e
10+ IMAGE_NAME_INTEGRATION : crc-integration
11+
12+ jobs :
13+ build-e2e :
14+ runs-on : ubuntu-latest
15+ strategy :
16+ fail-fast : false
17+
18+ steps :
19+ - name : Check out repository code
20+ uses : actions/checkout@v3
21+
22+ - name : Build and archive e2e image
23+ # use github.sha as ID to correlate various workflows triggered by the same event
24+ run : |
25+ CRC_E2E_IMG_VERSION=id-${{ github.sha }} make containerized_e2e
26+ podman save -o ${{ env.IMAGE_NAME_E2E }}.tar quay.io/crcont/${{ env.IMAGE_NAME_E2E}}:id-${{ github.sha }}
27+
28+ - name : Upload e2e image
29+ uses : actions/upload-artifact@v3
30+ with :
31+ name : ${{ env.IMAGE_NAME_E2E }}-id${{ github.sha }}
32+ path : ${{ env.IMAGE_NAME_E2E }}.tar
33+
34+ build-integration :
35+ runs-on : ubuntu-latest
36+ strategy :
37+ fail-fast : false
38+
39+ steps :
40+ - name : Check out repository code
41+ uses : actions/checkout@v3
42+
43+ - name : Build and archive integration image
44+ # use github.sha as ID to correlate various workflows triggered by the same event
45+ run : |
46+ CRC_INTEGRATION_IMG_VERSION=id-${{ github.sha }} make containerized_integration
47+ podman save -o ${{ env.IMAGE_NAME_INTEGRATION }}.tar quay.io/crcont/${{ env.IMAGE_NAME_INTEGRATION }}:id-${{ github.sha }}
48+
49+ - name : Upload integration image
50+ uses : actions/upload-artifact@v3
51+ with :
52+ name : ${{ env.IMAGE_NAME_INTEGRATION }}-id${{ github.sha }}
53+ path : ${{ env.IMAGE_NAME_INTEGRATION }}.tar
You can’t perform that action at this time.
0 commit comments