Format image tags :thinking_face:

This commit is contained in:
Laica Lunasys 2023-04-09 18:00:01 +09:00
parent b6af3ab891
commit eb71aa8f8c

View File

@ -23,6 +23,9 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} 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" - name: "Build and Push"
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -30,4 +33,4 @@ jobs:
push: true push: true
tags: | tags: |
ghcr.io/misskeyio/misskey:latest ghcr.io/misskeyio/misskey:latest
ghcr.io/misskeyio/misskey:${{ github.ref_name }} ghcr.io/misskeyio/misskey:${FORMATTED_BRANCH_NAME}