Docker action gha

Signed-off-by: dada513 <dada513@protonmail.com>
This commit is contained in:
dada513 2022-05-30 18:13:13 +02:00
parent 43e1e5f7b7
commit d1ec1fe78f
No known key found for this signature in database
GPG key ID: 403448C14FA4B33E

22
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,22 @@
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