From 3639390789b44521f869064bbff9ba61e1ff6d6c Mon Sep 17 00:00:00 2001 From: Laica Lunasys Date: Sun, 9 Apr 2023 17:53:34 +0900 Subject: [PATCH] Add ghcr push (experimental) --- .github/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000000..34fba1e86f --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 }}