Skip to content

Merge pull request #21 from Rin010/master #89

Merge pull request #21 from Rin010/master

Merge pull request #21 from Rin010/master #89

Workflow file for this run

name: docker
on:
push:
branches: [ 'master' ]
jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Prepare Docker Repo Name
run: |
echo "REPO=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ env.REPO }}
password: ${{ secrets.TOKEN }}
- name: Push to GitHub Packages
uses: docker/build-push-action@v2
with:
context: .
file: docker/Dockerfile
push: true
pull: true
tags: ghcr.io/${{ env.REPO }}/bangumi-telegram-bot
cache-from: type=registry,ref=ghcr.io/${{ env.REPO }}/bangumi-telegram-bot
cache-to: type=inline