Skip to content

Merge pull request #7 from resonite-love/develop #9

Merge pull request #7 from resonite-love/develop

Merge pull request #7 from resonite-love/develop #9

name: Build and Publish Docker
on:
push:
tags:
- '*resonite-love.*'
jobs:
build_and_push:
runs-on: ubuntu-latest
env:
IMAGE_NAME: resonite-love-misskey
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}