Add docker action cache and platforms input

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/3/head
trivernis 4 years ago
parent 0d8bc90f19
commit ac6575ccab
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -2,6 +2,11 @@ name: Docker
on: on:
workflow_dispatch: workflow_dispatch:
inputs:
platforms:
description: 'Platforms to build the container for'
required: true
default: 'linux/amd64,linux/arm/v7,linux/arm64'
jobs: jobs:
multi: multi:
@ -35,7 +40,7 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64 platforms: ${{github.events.inputs.platforms}}
push: true push: true
tags: | tags: |
trivernis/snekcloud-server:alpine trivernis/snekcloud-server:alpine
Loading…
Cancel
Save