|
|
@ -11,7 +11,7 @@ on: |
|
|
|
- src/Services/Basket/* |
|
|
|
- .github/workflows/basket-api.yml |
|
|
|
env: |
|
|
|
registryEndpoint: |
|
|
|
registryEndpoint: hub.docker.com/repository/docker/borjasanes/eshoponcontainers |
|
|
|
services: basket-api |
|
|
|
image: basket.api |
|
|
|
# branch: $(echo ${GITHUB_REF#refs/heads/}) |
|
|
@ -63,8 +63,8 @@ jobs: |
|
|
|
|
|
|
|
- name: Compose build ${{ env.services }} |
|
|
|
run: | |
|
|
|
echo "running on ${{ env.branch }}" |
|
|
|
echo "Env variables:" |
|
|
|
echo "running on $env.branch" |
|
|
|
printenv |
|
|
|
sudo docker-compose -f src/docker-compose.yml build ${{ env.services }} |
|
|
|
docker images |
|
|
@ -73,12 +73,12 @@ jobs: |
|
|
|
TAG: ${{ env.branch }} |
|
|
|
REGISTRY: ${{ env.registryEndpoint }} |
|
|
|
|
|
|
|
- name: Compose push ${{ env.image }} |
|
|
|
run: sudo docker-compose -f src/docker-compose.yml push ${{ env.services }} |
|
|
|
shell: bash |
|
|
|
env: |
|
|
|
TAG: ${{ env.branch }} |
|
|
|
REGISTRY: ${{ env.registryEndpoint }} |
|
|
|
# - name: Compose push ${{ env.image }} |
|
|
|
# run: sudo docker-compose -f src/docker-compose.yml push ${{ env.services }} |
|
|
|
# shell: bash |
|
|
|
# env: |
|
|
|
# TAG: ${{ env.branch }} |
|
|
|
# REGISTRY: ${{ env.registryEndpoint }} |
|
|
|
|
|
|
|
BuildWindows: |
|
|
|
runs-on: windows-2019 |
|
|
|