Update GitHub actions

This commit is contained in:
Sipke Schoorstra 2021-05-27 22:03:17 +02:00
parent 4d156c7ef7
commit 28ee7fe1c9
3 changed files with 26 additions and 26 deletions

View file

@ -28,14 +28,6 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v1
# - name: Cache Docker layers
# uses: actions/cache@v2
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-
- name: Docker meta
id: meta
uses: docker/metadata-action@v3

View file

@ -25,13 +25,18 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
# list of Docker images to use as base name for tags
images: |
elsaworkflows/elsa-dashboard
flavor: |
latest=true
# generate Docker tags based on the following events/attributes
tags: |
type=sha
- name: Login to DockerHub
uses: docker/login-action@v1
@ -48,9 +53,8 @@ jobs:
file: ./docker/Dockerfile-elsa-dashboard
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
elsaworkflows/elsa-dashboard:latest
elsaworkflows/elsa-dashboard:${{ github.run_number }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

View file

@ -25,13 +25,18 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
# list of Docker images to use as base name for tags
images: |
elsaworkflows/elsa-server
flavor: |
latest=true
# generate Docker tags based on the following events/attributes
tags: |
type=sha
- name: Login to DockerHub
uses: docker/login-action@v1
@ -48,9 +53,8 @@ jobs:
file: ./docker/Dockerfile-elsa-server
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
elsaworkflows/elsa-server:latest
elsaworkflows/elsa-server:${{ github.run_number }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache