Update env variables.
This commit is contained in:
parent
471f3ea6ba
commit
a020be9a51
22
.github/workflows/basket-api.yml
vendored
22
.github/workflows/basket-api.yml
vendored
@ -59,27 +59,31 @@ jobs:
|
|||||||
currentbranch=$(echo ${GITHUB_REF##*/})
|
currentbranch=$(echo ${GITHUB_REF##*/})
|
||||||
echo "running on $currentbranch"
|
echo "running on $currentbranch"
|
||||||
echo "branch=$currentbranch" >> $GITHUB_ENV
|
echo "branch=$currentbranch" >> $GITHUB_ENV
|
||||||
|
echo "TAG=$currentbranch" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Compose build ${{ env.services }}
|
- name: Compose build ${{ env.services }}
|
||||||
run: |
|
run: |
|
||||||
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 }}"
|
||||||
sudo docker-compose -f src/docker-compose.yml build ${{ env.services }}
|
pwd
|
||||||
|
ls
|
||||||
|
sudo docker-compose build ${{ env.services }}
|
||||||
docker images
|
docker images
|
||||||
|
working-directory: ./src
|
||||||
|
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
|
shell: bash
|
||||||
env:
|
env:
|
||||||
TAG: ${{ env.branch }}
|
TAG: ${{ env.branch }}
|
||||||
REGISTRY: ${{ env.registryEndpoint }}
|
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:
|
BuildWindows:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
if: ${{ false }}
|
if: ${{ false }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user