Skip to content

Commit

Permalink
chore: support akariskey
Browse files Browse the repository at this point in the history
  • Loading branch information
sousuke0422 committed Feb 17, 2024
1 parent 10913e1 commit 4468108
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-publish-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ on:

env:
# TODO: Change variable to your image's name.
# ayuskey
# IMAGE_NAME_LTS: ayuskey-lts # not stable
# IMAGE_NAME_LATEST: ayuskey-latest # todo
IMAGE_NAME: ayuskey10 # (仮)

# akariskey
AKARI_IMAGE_NAME: akariskey

jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
Expand Down Expand Up @@ -51,7 +55,8 @@ jobs:
runs-on: ubuntu-22.04
if: >-
github.event_name == 'push' ||
github.repository == 'TeamBlackCrystal/ayuskey'
github.repository == 'TeamBlackCrystal/ayuskey' ||
github.repository == 'AkariNext/akariskey'
# 他で使うときは↑を書き換える

permissions:
Expand Down Expand Up @@ -97,6 +102,7 @@ jobs:
run: |
#IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
IMAGE_ID=ghcr.io/teamblackcrystal/$IMAGE_NAME
[[ "${{github.repository}}" == "AkariNext/akariskey" ]] && IMAGE_ID=ghcr.io/akarinext/$AKARI_IMAGE_NAME && IMAGE_NAME=$AKARI_IMAGE_NAME && echo "akariskey mode"
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand Down

0 comments on commit 4468108

Please sign in to comment.