|
|
@ -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:
|
|
|
@ -16,6 +21,13 @@ jobs:
|
|
|
|
-
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
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
|
|
|
|
name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
uses: docker/login-action@v1
|
|
|
@ -28,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
|