Modrinth/.github/workflows/docker-compile.yml
Workflow config file is invalid. Please check your config file: yaml: line 28: mapping values are not allowed in this context
2020-12-31 19:25:19 -07:00

36 lines
923 B
YAML

name: Docker image build
on:
push:
branches-ignore:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
SQLX_OFFLINE: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
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: Build Docker images
uses: docker/build-push-action@v1
with:
push: false
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: modrinth/labrinth/labrinth
tag_with_ref: true
tag_with_sha: true