File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 services : basket-api
1616 image : basket.api
1717 branch : $(echo ${GITHUB_REF#refs/heads/})
18+
1819jobs :
1920 # login:
2021 # runs-on: ubuntu-latest
@@ -54,24 +55,39 @@ jobs:
5455 steps :
5556 - name : ' Checkout Github Action'
5657 uses : actions/checkout@master
58+
5759 - name : Login to Container Registry
5860 uses : docker/login-action@v1
5961 with :
6062 registry : ${{ env.registryEndpoint }}
6163 username : ${{ secrets.USERNAME }}
6264 password : ${{ secrets.PASSWORD }}
65+
66+ - name : Docker environment
67+ run : eval $(docker-machine env dev)
68+ shell : bash
69+
70+ - name : Compose build ${{ env.services }}
71+ run : docker-compose -f src/docker-compose.yml build ${{ env.services }}
72+ shell : bash
73+ env :
74+ TAG : ${{ env.branch }}
75+ REGISTRY : ${{ env.registryEndpoint }}
76+
6377 - name : Compose build ${{ env.services }}
6478 run : docker-compose -f src/docker-compose.yml build ${{ env.services }}
6579 shell : bash
6680 env :
6781 TAG : ${{ env.branch }}
6882 REGISTRY : ${{ env.registryEndpoint }}
83+
6984 - name : Compose push ${{ env.image }}
7085 run : docker-compose -f src/docker-compose.yml push ${{ env.services }}
7186 shell : bash
7287 env :
7388 TAG : ${{ env.branch }}
7489 REGISTRY : ${{ env.registryEndpoint }}
90+
7591 BuildWindows :
7692 runs-on : windows-2019
7793 if : ${{ false }}
You can’t perform that action at this time.
0 commit comments