Browse Source

Fix get branch step

pull/1565/head
David Sanz 4 years ago
parent
commit
2d6e17f5f1
1 changed files with 18 additions and 17 deletions
  1. +18
    -17
      .github/workflows/basket-api.yml

+ 18
- 17
.github/workflows/basket-api.yml View File

@ -56,27 +56,28 @@ jobs:
- name: Get branch name
run: |
currentbranch=$(echo ${GITHUB_REF#refs/heads/})
echo $currentbranch
currentbranch=$(echo ${GITHUB_REF##*/})
echo "running on $currentbranch"
echo "branch=$currentbranch" >> $GITHUB_ENV
printenv
shell: bash
- name: Compose build ${{ env.services }}
run: |
echo "A initial message"
sudo docker-compose -f src/docker-compose.yml build ${{ env.services }}
docker images
shell: bash
env:
TAG: ${{ env.branch }}
REGISTRY: ${{ env.registryEndpoint }}
# - name: Compose build ${{ env.services }}
# run: |
# echo "A initial message"
# sudo docker-compose -f src/docker-compose.yml build ${{ env.services }}
# docker images
# 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 }}
# - 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


Loading…
Cancel
Save