Add docker-machine env eval
This commit is contained in:
parent
78bf5ee00a
commit
e4129664eb
16
.github/workflows/basket-api.yml
vendored
16
.github/workflows/basket-api.yml
vendored
@ -15,6 +15,7 @@ env:
|
||||
services: basket-api
|
||||
image: basket.api
|
||||
branch: $(echo ${GITHUB_REF#refs/heads/})
|
||||
|
||||
jobs:
|
||||
# login:
|
||||
# runs-on: ubuntu-latest
|
||||
@ -54,24 +55,39 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout Github Action'
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ${{ env.registryEndpoint }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
|
||||
- name: Docker environment
|
||||
run: eval $(docker-machine env dev)
|
||||
shell: bash
|
||||
|
||||
- name: Compose build ${{ env.services }}
|
||||
run: docker-compose -f src/docker-compose.yml build ${{ env.services }}
|
||||
shell: bash
|
||||
env:
|
||||
TAG: ${{ env.branch }}
|
||||
REGISTRY: ${{ env.registryEndpoint }}
|
||||
|
||||
- name: Compose build ${{ env.services }}
|
||||
run: docker-compose -f src/docker-compose.yml build ${{ env.services }}
|
||||
shell: bash
|
||||
env:
|
||||
TAG: ${{ env.branch }}
|
||||
REGISTRY: ${{ env.registryEndpoint }}
|
||||
|
||||
- name: Compose push ${{ env.image }}
|
||||
run: docker-compose -f src/docker-compose.yml push ${{ env.services }}
|
||||
shell: bash
|
||||
env:
|
||||
TAG: ${{ env.branch }}
|
||||
REGISTRY: ${{ env.registryEndpoint }}
|
||||
|
||||
BuildWindows:
|
||||
runs-on: windows-2019
|
||||
if: ${{ false }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user