Update actions to move away from set-env (#1349)

This commit is contained in:
Jesse Hills 2020-11-02 11:49:08 +13:00 committed by GitHub
parent 31c604331c
commit 9fc3e05b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 14 deletions

View File

@ -38,9 +38,9 @@ jobs:
dockerfile="docker/Dockerfile" dockerfile="docker/Dockerfile"
fi fi
echo "::set-env name=BUILD_FROM::${build_from}" echo "BUILD_FROM=${build_from}" >> $GITHUB_ENV
echo "::set-env name=BUILD_TO::${build_to}" echo "BUILD_TO=${build_to}" >> $GITHUB_ENV
echo "::set-env name=DOCKERFILE::${dockerfile}" echo "DOCKERFILE=${dockerfile}" >> $GITHUB_ENV
- name: Pull for cache - name: Pull for cache
run: | run: |
docker pull "${BUILD_TO}:dev" || true docker pull "${BUILD_TO}:dev" || true

View File

@ -189,7 +189,7 @@ jobs:
- name: Set TAG - name: Set TAG
run: | run: |
TAG="${GITHUB_SHA:0:7}" TAG="${GITHUB_SHA:0:7}"
echo "::set-env name=TAG::${TAG}" echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Set up env variables - name: Set up env variables
run: | run: |
base_version="2.6.0" base_version="2.6.0"
@ -204,9 +204,9 @@ jobs:
dockerfile="docker/Dockerfile" dockerfile="docker/Dockerfile"
fi fi
echo "::set-env name=BUILD_FROM::${build_from}" echo "BUILD_FROM=${build_from}" >> $GITHUB_ENV
echo "::set-env name=BUILD_TO::${build_to}" echo "BUILD_TO=${build_to}" >> $GITHUB_ENV
echo "::set-env name=DOCKERFILE::${dockerfile}" echo "DOCKERFILE=${dockerfile}" >> $GITHUB_ENV
- name: Pull for cache - name: Pull for cache
run: | run: |
docker pull "${BUILD_TO}:dev" || true docker pull "${BUILD_TO}:dev" || true
@ -243,7 +243,7 @@ jobs:
- name: Set TAG - name: Set TAG
run: | run: |
TAG="${GITHUB_SHA:0:7}" TAG="${GITHUB_SHA:0:7}"
echo "::set-env name=TAG::${TAG}" echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Log in to docker hub - name: Log in to docker hub
env: env:
DOCKER_USER: ${{ secrets.DOCKER_USER }} DOCKER_USER: ${{ secrets.DOCKER_USER }}

View File

@ -209,7 +209,7 @@ jobs:
- name: Set TAG - name: Set TAG
run: | run: |
TAG="${GITHUB_REF#refs/tags/v}" TAG="${GITHUB_REF#refs/tags/v}"
echo "::set-env name=TAG::${TAG}" echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Set up env variables - name: Set up env variables
run: | run: |
base_version="2.6.0" base_version="2.6.0"
@ -231,10 +231,10 @@ jobs:
fi fi
# Set env variables so these values don't need to be calculated again # Set env variables so these values don't need to be calculated again
echo "::set-env name=BUILD_FROM::${build_from}" echo "BUILD_FROM=${build_from}" >> $GITHUB_ENV
echo "::set-env name=BUILD_TO::${build_to}" echo "BUILD_TO=${build_to}" >> $GITHUB_ENV
echo "::set-env name=DOCKERFILE::${dockerfile}" echo "DOCKERFILE=${dockerfile}" >> $GITHUB_ENV
echo "::set-env name=CACHE_TAG::${cache_tag}" echo "CACHE_TAG=${cache_tag}" >> $GITHUB_ENV
- name: Pull for cache - name: Pull for cache
run: | run: |
docker pull "${BUILD_TO}:${CACHE_TAG}" || true docker pull "${BUILD_TO}:${CACHE_TAG}" || true
@ -279,7 +279,7 @@ jobs:
- name: Set TAG - name: Set TAG
run: | run: |
TAG="${GITHUB_REF#refs/tags/v}" TAG="${GITHUB_REF#refs/tags/v}"
echo "::set-env name=TAG::${TAG}" echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Log in to docker hub - name: Log in to docker hub
env: env:
DOCKER_USER: ${{ secrets.DOCKER_USER }} DOCKER_USER: ${{ secrets.DOCKER_USER }}