Merge pull request #2 from Trivernis/actions

Actions
pull/3/head
Trivernis 4 years ago committed by GitHub
commit e685fea4f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,7 @@
name: Docker name: Docker
on: on:
push: workflow_dispatch:
branches: [ main ]
jobs: jobs:
multi: multi:
@ -29,7 +28,7 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile 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 push: true
tags: | tags: |
trivernis/snekcloud-server:latest trivernis/snekcloud-server:latest

@ -22,10 +22,11 @@ jobs:
path: | path: |
target/**/build target/**/build
target/**/deps target/**/deps
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} target/**/incremental
key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-build- ${{ runner.os }}-build-
${{ runner.os }}-
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
- name: Run tests - name: Run tests

Loading…
Cancel
Save