[CI] Fix release Docker github action (#1942)

This commit is contained in:
Martin Pugh
2020-11-11 13:44:31 +01:00
committed by GitHub
parent dd4d8e24e0
commit 23f05fdcf1
2 changed files with 12 additions and 7 deletions
+6 -2
View File
@@ -14,12 +14,12 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
- name: Login to Dockerhub
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -29,10 +29,14 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
file: scripts/docker/Dockerfile.release
file: scripts/docker/release.Dockerfile
tags: |
parity/polkadot:latest
parity/polkadot:${{ github.event.release.tag_name }}
build-args: |
POLKADOT_VERSION=${{ github.event.release.tag_name }}
VCS_REF=${{ github.ref }}
BUILD_DATE=${{ github.event.release.published_at }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Image digest