Actions
@ -1,8 +1,7 @@
name: Docker
on:
push:
workflow_dispatch:
branches: [ main ]
jobs:
multi:
@ -29,7 +28,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
push: true
tags: |
trivernis/snekcloud-server:latest
@ -22,10 +22,11 @@ jobs:
path: |
target/**/build
target/**/deps
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
target/**/incremental
key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build
run: cargo build --verbose
- name: Run tests