File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Utility Images
2+
3+ on :
4+ # Uncomment below for testing purposes
5+ # pull_request:
6+ push :
7+ branches :
8+ - main
9+
10+ jobs :
11+ buildx :
12+ runs-on : ubuntu-22.04
13+ env :
14+ TERM : xterm
15+ strategy :
16+ matrix :
17+ include :
18+ - image : util
19+ tag : 4
20+ context : plugins/lando-core/types/utility
21+
22+ steps :
23+ - name : Checkout code
24+ uses : actions/checkout@v2
25+ - name : Set up QEMU
26+ uses : docker/setup-qemu-action@v1
27+ - name : Set up Docker Buildx
28+ id : buildx
29+ uses : docker/setup-buildx-action@v1
30+ with :
31+ install : true
32+ - name : Available platforms
33+ run : echo ${{ steps.buildx.outputs.platforms }}
34+ - name : Set tag suffix
35+ id : pr
36+ if : ${{ github.event_name == 'pull_request' }}
37+ run : echo "::set-output name=TAG_SUFFIX::-edge"
38+ - name : Login to DockerHub
39+ uses : docker/login-action@v1
40+ with :
41+ username : ${{ secrets.DOCKERHUB_USERNAME }}
42+ password : ${{ secrets.DOCKERHUB_TOKEN }}
43+ - name : Build and push devwithlando/${{ matrix.image }}:${{ matrix.tag }}${{ steps.pr.outputs.TAG_SUFFIX }}
44+ uses : docker/build-push-action@v2
45+ with :
46+ context : ${{ matrix.context }}
47+ platforms : linux/amd64,linux/arm64
48+ push : true
49+ tags : devwithlando/${{ matrix.image }}:${{ matrix.tag }}${{ steps.pr.outputs.TAG_SUFFIX }}
You can’t perform that action at this time.
0 commit comments