mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 12:55:46 +01:00
Update actions to move away from set-env (#1349)
This commit is contained in:
parent
31c604331c
commit
9fc3e05b76
6
.github/workflows/ci-docker.yml
vendored
6
.github/workflows/ci-docker.yml
vendored
@ -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
|
||||||
|
10
.github/workflows/release-dev.yml
vendored
10
.github/workflows/release-dev.yml
vendored
@ -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 }}
|
||||||
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user