Skip to content

Commit

Permalink
Setup GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid committed Sep 16, 2024
1 parent bbb67b1 commit efc138a
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-misskey-js-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
- io
- host
- bun
paths:
- packages/misskey-js/package.json
- package.json
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/docker-bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish Docker image (bun)

on:
push:
branches:
- bun
tags:
- '**-bun.*'
workflow_dispatch:

jobs:
push_to_registry:
name: Push Docker image to GitHub Container Registry
runs-on: ubuntu-22.04
if: github.repository == 'MisskeyIO/misskey'
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/misskeyio/misskey
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare image tags
run: |
echo "FORMATTED_BRANCH_NAME=$(echo ${{ github.ref_name }} | sed -e 's/\//-/g' )" >> $GITHUB_ENV
- name: Build and Push to GitHub Container Registry
uses: docker/build-push-action@v6
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
push: true
platforms: ${{ steps.buildx.outputs.platforms }}
provenance: false
labels: ${{ env.FORMATTED_BRANCH_NAME }}
cache-from: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache-bun
cache-to: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache-bun,mode=max
tags: |
ghcr.io/misskeyio/misskey:bun
ghcr.io/misskeyio/misskey:${{ env.FORMATTED_BRANCH_NAME }}
1 change: 1 addition & 0 deletions .github/workflows/dockle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
- io
- host
- bun
pull_request:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
- io
- host
- bun
paths:
- packages/backend/**
- packages/frontend/**
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
- io
- host
- bun
paths:
- packages/backend/**
# for permissions
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
- io
- host
- bun
paths:
- packages/frontend/**
# for permissions
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-misskey-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- beta
- io
- host
- bun
paths:
- packages/misskey-js/**
pull_request:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
- io
- host
- bun
pull_request:

env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/validate-api-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- beta
- io
- host
- bun
paths:
- packages/backend/**
pull_request:
Expand Down

0 comments on commit efc138a

Please sign in to comment.