Browse Source

Add docker-machine env eval

pull/1565/head
David Sanz 4 years ago
parent
commit
e4129664eb
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      .github/workflows/basket-api.yml

+ 16
- 0
.github/workflows/basket-api.yml View File

@ -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…
Cancel
Save