mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Fix GH Actions release-dev.yml
This commit is contained in:
parent
01b1b688b1
commit
a53481e2da
2 changed files with 11 additions and 10 deletions
9
.github/workflows/release-dev.yml
vendored
9
.github/workflows/release-dev.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
- gh-actions-test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# THE LINT/TEST JOBS ARE COPIED FROM ci.yaml
|
# THE LINT/TEST JOBS ARE COPIED FROM ci.yaml
|
||||||
|
@ -187,9 +188,9 @@ jobs:
|
||||||
--build-arg "BUILD_VERSION=${TAG}" \
|
--build-arg "BUILD_VERSION=${TAG}" \
|
||||||
--tag "${IMAGE}" \
|
--tag "${IMAGE}" \
|
||||||
--file "${DOCKERFILE}" \
|
--file "${DOCKERFILE}" \
|
||||||
--cache-from "${{ github.repository }}:latest"
|
--cache-from "${{ github.repository }}:latest" \
|
||||||
--cache-from "${{ github.repository }}:beta"
|
--cache-from "${{ github.repository }}:beta" \
|
||||||
--cache-from "${{ github.repository }}:dev"
|
--cache-from "${{ github.repository }}:dev" \
|
||||||
.
|
.
|
||||||
- name: Log in to docker hub
|
- name: Log in to docker hub
|
||||||
env:
|
env:
|
||||||
|
@ -221,4 +222,4 @@ jobs:
|
||||||
${REPO}-amd64:${TAG} \
|
${REPO}-amd64:${TAG} \
|
||||||
${REPO}-armv7:${TAG} \
|
${REPO}-armv7:${TAG} \
|
||||||
${REPO}-i386:${TAG}
|
${REPO}-i386:${TAG}
|
||||||
docker push ${REPO}:${TAG}
|
docker manifest push ${REPO}:${TAG}
|
||||||
|
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -208,9 +208,9 @@ jobs:
|
||||||
--build-arg "BUILD_VERSION=${TAG}" \
|
--build-arg "BUILD_VERSION=${TAG}" \
|
||||||
--tag "${IMAGE}" \
|
--tag "${IMAGE}" \
|
||||||
--file "${DOCKERFILE}" \
|
--file "${DOCKERFILE}" \
|
||||||
--cache-from "${{ github.repository }}:latest"
|
--cache-from "${{ github.repository }}:latest" \
|
||||||
--cache-from "${{ github.repository }}:beta"
|
--cache-from "${{ github.repository }}:beta" \
|
||||||
--cache-from "${{ github.repository }}:dev"
|
--cache-from "${{ github.repository }}:dev" \
|
||||||
.
|
.
|
||||||
- name: Log in to docker hub
|
- name: Log in to docker hub
|
||||||
env:
|
env:
|
||||||
|
@ -253,7 +253,7 @@ jobs:
|
||||||
${REPO}-armv7:${TAG} \
|
${REPO}-armv7:${TAG} \
|
||||||
${REPO}-i386:${TAG}
|
${REPO}-i386:${TAG}
|
||||||
echo "::set-env name=REPO::${REPO}"
|
echo "::set-env name=REPO::${REPO}"
|
||||||
docker push ${REPO}:${TAG}
|
docker manifest push ${REPO}:${TAG}
|
||||||
|
|
||||||
- name: Publish docker beta tag
|
- name: Publish docker beta tag
|
||||||
if: ${{ github.event.release.prerelease) }}
|
if: ${{ github.event.release.prerelease) }}
|
||||||
|
@ -263,7 +263,7 @@ jobs:
|
||||||
${REPO}-amd64:beta \
|
${REPO}-amd64:beta \
|
||||||
${REPO}-armv7:beta \
|
${REPO}-armv7:beta \
|
||||||
${REPO}-i386:beta
|
${REPO}-i386:beta
|
||||||
docker push ${REPO}:beta
|
docker manifest push ${REPO}:beta
|
||||||
- name: Publish docker latest tag
|
- name: Publish docker latest tag
|
||||||
if: ${{ !github.event.release.prerelease) }}
|
if: ${{ !github.event.release.prerelease) }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -272,4 +272,4 @@ jobs:
|
||||||
${REPO}-amd64:latest \
|
${REPO}-amd64:latest \
|
||||||
${REPO}-armv7:latest \
|
${REPO}-armv7:latest \
|
||||||
${REPO}-i386:latest
|
${REPO}-i386:latest
|
||||||
docker push ${REPO}:latest
|
docker manifest push ${REPO}:latest
|
||||||
|
|
Loading…
Reference in a new issue