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 Unit Testing Images
2+
3+ on :
4+ push :
5+ paths :
6+ - ' magento-unit-tests/**'
7+
8+ jobs :
9+ build :
10+ name : " Build and deploy"
11+
12+ runs-on : " ubuntu-latest"
13+
14+ strategy :
15+ matrix :
16+ php-version :
17+ - " 7.3"
18+ - " 7.4"
19+ actions-with-docker-image :
20+ - " magento-unit-tests"
21+ env :
22+ DOCKER_USERNAME : " extdn"
23+
24+ steps :
25+ - name : " Checkout"
26+ uses : " actions/checkout@v2"
27+
28+ - name : " Grab version number"
29+ uses : " olegtarasov/get-tag@v1"
30+ id : " tagName"
31+
32+ - name : " Build Docker image"
33+ run : " docker build --tag extdn/${{ matrix.actions-with-docker-image }}-action:${{ matrix.php-version }}-latest ${{ matrix.actions-with-docker-image }}/. -f ${{ matrix.actions-with-docker-image }}/Dockerfile:${{ matrix.php-version }}"
34+
35+ - name : " Docker Login"
36+ run : " echo ${{ secrets.DOCKER_PASSWORD }} | $(which docker) login --password-stdin --username ${{ env.DOCKER_USERNAME }}"
37+
38+ - name : " Push Docker image (latest)"
39+ run : " docker push extdn/${{ matrix.actions-with-docker-image }}-action:${{ matrix.php-version }}-latest"
40+
41+ # - name: "Tag Docker image (versioned)"
42+ # run: "docker tag extdn/${{ matrix.actions-with-docker-image }}-action extdn/${{ matrix.actions-with-docker-image }}-action:${{ steps.tagName.outputs.tag }}"
43+
44+ # - name: "Push Docker image (versioned)"
45+ # run: "docker push extdn/${{ matrix.actions-with-docker-image }}-action:${{ steps.tagName.outputs.tag }}"
46+
47+ - name : " Docker Logout"
48+ run : " docker logout"
You can’t perform that action at this time.
0 commit comments