refraction/.github/workflows/docker.yml
2022-05-30 18:16:47 +02:00

24 lines
552 B
YAML

name: ci
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/polymc/bot:latest
cache-from: type=gha
cache-to: type=gha,mode=max