Fix GH Actions release-dev.yml

This commit is contained in:
Otto Winter 2020-07-14 15:42:29 +02:00
parent 01b1b688b1
commit a53481e2da
No known key found for this signature in database
GPG key ID: 48ED2DDB96D7682C
2 changed files with 11 additions and 10 deletions

View file

@ -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}

View file

@ -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