Merge pull request #3 from Trivernis/actions

Actions
main
Trivernis 4 years ago committed by GitHub
commit 418a0a2627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,11 @@ name: Docker
on:
workflow_dispatch:
inputs:
platforms:
description: 'Platforms to build the container for'
required: true
default: 'linux/amd64,linux/arm/v7,linux/arm64'
jobs:
multi:
@ -16,6 +21,13 @@ jobs:
-
name: Set up Docker 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: Login to DockerHub
uses: docker/login-action@v1
@ -28,7 +40,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
platforms: ${{github.events.inputs.platforms}}
push: true
tags: |
trivernis/snekcloud-server:alpine
Loading…
Cancel
Save