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 : Docker Build
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build :
9+ name : " Build and deploy"
10+
11+ runs-on : " ubuntu-latest"
12+
13+ strategy :
14+ matrix :
15+ actions-with-docker-image :
16+ - " magento-coding-standard"
17+ - " magento-mess-detector"
18+
19+ env :
20+ DOCKER_USERNAME : " extdn"
21+
22+ steps :
23+ - name : " Checkout"
24+ uses : " actions/checkout@v2.0.0"
25+
26+ - name : " Grab version number"
27+ id : " get_version"
28+ run : " echo ::set-output name=VERSION::${GITHUB_REF/refs\/ tags\/ /}"
29+
30+ - name : " Build Docker image"
31+ run : " docker build --tag extdn/${{ matrix.actions-with-docker-image }}-action:latest ${{ matrix.actions-with-docker-image }}/."
32+
33+ - name : " Docker Login"
34+ run : " echo ${{ secrets.DOCKER_PASSWORD }} | $(which docker) login --password-stdin --username ${{ env.DOCKER_USERNAME }}"
35+
36+ - name : " Push Docker image (latest)"
37+ run : " docker push extdn/${{ matrix.actions-with-docker-image }}-action:latest"
38+
39+ - name : " Tag Docker image (versioned)"
40+ run : " docker tag extdn/${{ matrix.actions-with-docker-image }}-action extdn/${{ matrix.actions-with-docker-image }}-action:${{steps.get_version.outputs.name}}"
41+
42+ - name : " Push Docker image (versioned)"
43+ run : " docker push extdn/${{ matrix.actions-with-docker-image }}-action:${{steps.get_version.outputs.name}}"
44+
45+ - name : " Docker Logout"
46+ run : " docker logout"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ author: 'ExtDN'
33description : ' performs php static code analysis with the Magento Coding Standard'
44runs :
55 using : ' docker'
6- image : ' Dockerfile '
6+ image : ' docker://extdn/magento-coding-standard-action:latest '
77branding :
88 icon : ' code'
99 color : ' green'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ author: 'ExtDN'
33description : ' performs php static code analysis with the Magento Mess Detector ruleset'
44runs :
55 using : ' docker'
6- image : ' Dockerfile '
6+ image : ' docker://extdn/magento-mess-detector-action:latest '
77branding :
88 icon : ' code'
99 color : ' green'
You can’t perform that action at this time.
0 commit comments