Skip to content

Commit

Permalink
add: リリース時にDockerイメージをpush
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-mai committed May 5, 2024
1 parent d3e132b commit 61677cc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/on-release-publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: On Release Created (Publish misskey-js)

on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
if: github.repository == 'team-shahu/misskey'
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
run: |
docker build --tag ghcr.io/${{ github.repository_owner }}/misskey:latest \
--tag ghcr.io/${{ github.repository_owner }}/misskey:${{ env.RELEASE_TAG }} \
.
- name: Push Docker Image
run: |
docker push ghcr.io/${{ github.repository_owner }}/misskey:latest
docker push ghcr.io/${{ github.repository_owner }}/misskey:${{ env.RELEASE_TAG }}

1 comment on commit 61677cc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

Please sign in to comment.