mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +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:
|
||||
branches:
|
||||
- dev
|
||||
- gh-actions-test
|
||||
|
||||
jobs:
|
||||
# THE LINT/TEST JOBS ARE COPIED FROM ci.yaml
|
||||
|
@ -187,9 +188,9 @@ jobs:
|
|||
--build-arg "BUILD_VERSION=${TAG}" \
|
||||
--tag "${IMAGE}" \
|
||||
--file "${DOCKERFILE}" \
|
||||
--cache-from "${{ github.repository }}:latest"
|
||||
--cache-from "${{ github.repository }}:beta"
|
||||
--cache-from "${{ github.repository }}:dev"
|
||||
--cache-from "${{ github.repository }}:latest" \
|
||||
--cache-from "${{ github.repository }}:beta" \
|
||||
--cache-from "${{ github.repository }}:dev" \
|
||||
.
|
||||
- name: Log in to docker hub
|
||||
env:
|
||||
|
@ -221,4 +222,4 @@ jobs:
|
|||
${REPO}-amd64:${TAG} \
|
||||
${REPO}-armv7:${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}" \
|
||||
--tag "${IMAGE}" \
|
||||
--file "${DOCKERFILE}" \
|
||||
--cache-from "${{ github.repository }}:latest"
|
||||
--cache-from "${{ github.repository }}:beta"
|
||||
--cache-from "${{ github.repository }}:dev"
|
||||
--cache-from "${{ github.repository }}:latest" \
|
||||
--cache-from "${{ github.repository }}:beta" \
|
||||
--cache-from "${{ github.repository }}:dev" \
|
||||
.
|
||||
- name: Log in to docker hub
|
||||
env:
|
||||
|
@ -253,7 +253,7 @@ jobs:
|
|||
${REPO}-armv7:${TAG} \
|
||||
${REPO}-i386:${TAG}
|
||||
echo "::set-env name=REPO::${REPO}"
|
||||
docker push ${REPO}:${TAG}
|
||||
docker manifest push ${REPO}:${TAG}
|
||||
|
||||
- name: Publish docker beta tag
|
||||
if: ${{ github.event.release.prerelease) }}
|
||||
|
@ -263,7 +263,7 @@ jobs:
|
|||
${REPO}-amd64:beta \
|
||||
${REPO}-armv7:beta \
|
||||
${REPO}-i386:beta
|
||||
docker push ${REPO}:beta
|
||||
docker manifest push ${REPO}:beta
|
||||
- name: Publish docker latest tag
|
||||
if: ${{ !github.event.release.prerelease) }}
|
||||
run: |
|
||||
|
@ -272,4 +272,4 @@ jobs:
|
|||
${REPO}-amd64:latest \
|
||||
${REPO}-armv7:latest \
|
||||
${REPO}-i386:latest
|
||||
docker push ${REPO}:latest
|
||||
docker manifest push ${REPO}:latest
|
||||
|
|
Loading…
Reference in a new issue