修复与bangumi.online的联动推送 #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |