Skip to content

ci: submodules

ci: submodules #7

Workflow file for this run

name: Build
on:
push:
branches:
- master
jobs:
docker-hariko:
if: github.repository == 'misskey-dev/0key.dev'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/[email protected]
- uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
cd hariko
docker build -t "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-hariko" .
docker push "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-hariko"
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
docker-misskey:
if: github.repository == 'misskey-dev/0key.dev'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/[email protected]
with:
submodules: true
- uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: Homebrew/actions/setup-homebrew@master
- run: |
cd misskey
(brew install jaq; cd misskey; jaq --in-place ".version += \"-$(git rev-parse --abbrev-ref HEAD).$(git rev-parse HEAD)\"" package.json)
docker build -t "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey" .
docker push "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey"
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
helm-hariko:
if: github.repository == 'misskey-dev/0key.dev'
needs:
- docker-hariko
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/[email protected]
- run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: azure/[email protected]
with:
version: v3.15.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: mikefarah/[email protected]
with:
cmd: yq -i ".image.index = \"ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-hariko\"" hariko/chart/values.yaml
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
- uses: helm/[email protected]
with:
charts_dir: "hariko/chart"
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
helm-misskey:
if: github.repository == 'misskey-dev/0key.dev'
needs:
- docker-misskey
- helm-hariko
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/[email protected]
- run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: azure/[email protected]
with:
version: v3.15.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: mikefarah/[email protected]
with:
cmd: yq -i ".image.index = \"ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey\"" misskey/chart/values.yaml
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
- uses: helm/[email protected]
with:
charts_dir: "misskey/chart"
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}