mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-14 07:55:58 +01:00
Add ghcr push (experimental)
This commit is contained in:
parent
23db82d400
commit
3639390789
1 changed files with 33 additions and 0 deletions
33
.github/workflows/build.yaml
vendored
Normal file
33
.github/workflows/build.yaml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
# タグ付きpushの時にする
|
||||||
|
tags:
|
||||||
|
|
||||||
|
# TODO: 後で消す
|
||||||
|
branches:
|
||||||
|
- migrate/github-actions
|
||||||
|
|
||||||
|
# 手動ビルドもできるように(いる?)
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: build-images
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: "Login to GitHub Container Registry"
|
||||||
|
uses: docker/login-aciton@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: "Build and Push"
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
ghcr.io/misskeyio/misskey:latest
|
||||||
|
ghcr.io/misskeyio/misskey:${{ github.ref_name }}
|
Loading…
Reference in a new issue