File tree Expand file tree Collapse file tree 2 files changed +51
-23
lines changed Expand file tree Collapse file tree 2 files changed +51
-23
lines changed Original file line number Diff line number Diff line change 1+ name : Docker NodeJS Images GitHub workflow
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' master'
7+ push :
8+ branches :
9+ - ' master'
10+ schedule :
11+ - cron : ' 43 4 * * 0'
12+
13+ jobs :
14+ build_test_maybe_release :
15+ strategy :
16+ matrix :
17+ include :
18+ - variant : ' 6'
19+ - variant : ' 8'
20+ - variant : ' 10'
21+ - variant : ' 12'
22+ - variant : ' 14'
23+ - variant : ' 6-apache'
24+ - variant : ' 8-apache'
25+ - variant : ' 10-apache'
26+ - variant : ' 12-apache'
27+ - variant : ' 14-apache'
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Set up QEMU
31+ uses : docker/setup-qemu-action@v1
32+ - name : Set up Docker Buildx
33+ uses : docker/setup-buildx-action@v1
34+ - uses : actions/checkout@v1
35+ - name : Build and test
36+ run : |
37+ BRANCH="master" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
38+ docker images | grep thecodingmachine/nodejs
39+ - name : Login to DockerHub
40+ # Merge ~ push.
41+ if : ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
42+ uses : docker/login-action@v1
43+ with :
44+ username : ${{ secrets.DOCKERHUB_USERNAME }}
45+ password : ${{ secrets.DOCKERHUB_TOKEN }}
46+ - name : Release
47+ # Merge ~ push.
48+ if : ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
49+ run : |
50+ docker push thecodingmachine/nodejs:${{ matrix.variant}}
51+ docker tag thecodingmachine/nodejs:${{ matrix.variant }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments