diff --git a/.github/workflows/basket-api.yml b/.github/workflows/basket-api.yml index 3699eaffe..494c098bd 100644 --- a/.github/workflows/basket-api.yml +++ b/.github/workflows/basket-api.yml @@ -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 }}