working dir and build order cmd

This commit is contained in:
Borja García Rodríguez 2020-12-24 11:32:10 +01:00
parent 7d53c2e198
commit 8606921ff2

View File

@ -43,7 +43,8 @@ jobs:
# if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Compose build ${{ env.SERVICES }}
run: docker-compose build -f src/docker-compose.yml ${{ env.SERVICES }}
run: docker-compose build ${{ env.SERVICES }}
working-directory: ./src
shell: pwsh
env:
TAG: ${{ env.branch }}
@ -102,17 +103,19 @@ jobs:
- name: Set branch name as env variable
shell: pwsh
run: echo "BRANCH=$($env:GITHUB_REF.replace('refs/heads/feature/', ''))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
run: echo "BRANCH=$($env:GITHUB_REF.replace('refs/heads/', ''))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Compose build ${{ env.SERVICES }}
run: docker-compose build -f src/docker-compose.yml ${{ env.SERVICES }}
run: docker-compose build ${{ env.SERVICES }}
working-directory: ./src
shell: pwsh
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ env.REGISTRY_ENDPOINT }}
- name: Compose push ${{ env.SERVICES }}
run: docker-compose push -f src/docker-compose.yml ${{ env.SERVICES }}'
run: docker-compose push ${{ env.SERVICES }}'
working-directory: ./src
shell: pwsh
env:
TAG: ${{ env.BRANCH }}