export variable

This commit is contained in:
David Sanz 2020-12-23 16:06:47 +01:00
parent a020be9a51
commit 075160f5e9

View File

@ -67,8 +67,7 @@ jobs:
echo "running on ${{ env.branch }}" echo "running on ${{ env.branch }}"
echo "TAG: ${{ env.TAG }}" echo "TAG: ${{ env.TAG }}"
echo "REGISTRY: ${{ env.REGISTRY }}" echo "REGISTRY: ${{ env.REGISTRY }}"
pwd export TAG=${{ env.TAG }}
ls
sudo docker-compose build ${{ env.services }} sudo docker-compose build ${{ env.services }}
docker images docker images
working-directory: ./src working-directory: ./src
@ -77,12 +76,12 @@ jobs:
# TAG: ${{ env.branch }} # TAG: ${{ env.branch }}
REGISTRY: ${{ env.registryEndpoint }} REGISTRY: ${{ env.registryEndpoint }}
- name: Compose push ${{ env.image }} # - name: Compose push ${{ env.image }}
run: sudo docker-compose -f src/docker-compose.yml push ${{ env.services }} # run: sudo docker-compose -f src/docker-compose.yml push ${{ env.services }}
shell: bash # shell: bash
env: # env:
TAG: ${{ env.branch }} # TAG: ${{ env.branch }}
REGISTRY: ${{ env.registryEndpoint }} # REGISTRY: ${{ env.registryEndpoint }}
BuildWindows: BuildWindows:
runs-on: windows-2019 runs-on: windows-2019