-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ stagingブランチを設定する事でstaging環境でデプロイされるように #2488
Open
pikachu0310
wants to merge
4
commits into
master
Choose a base branch
from
feat/staging-deploy-action
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4f44977
:sparkles: stagingブランチを設定する事でstaging環境でデプロイされるように
pikachu0310 0ece60a
:art: master.ymlに統一
pikachu0310 d019c8a
:sparkles: manual dispatch でコミット/ブランチを指定して手動でstaging環境を立ち上げれるように変更
pikachu0310 d23a6c0
:art: ブランチ名のみ指定可能に変更、イメージタグなどを適切な名前に自動で変更するように
pikachu0310 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,15 @@ on: | |
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch to deploy' | ||
required: true | ||
default: 'master' | ||
commit: | ||
description: 'Specific commit to deploy' | ||
required: false | ||
motoki317 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
env: | ||
IMAGE_NAME: traq | ||
|
@@ -15,9 +24,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch || github.ref }} | ||
- name: Set TRAQ_VERSION env | ||
run: echo "TRAQ_VERSION=master-SNAPSHOT" >> $GITHUB_ENV | ||
- name: Set TRAQ_REVISION env | ||
if: ${{ github.event.inputs.commit != '' }} | ||
run: echo "TRAQ_REVISION=${{ github.event.inputs.commit }}" >> $GITHUB_ENV | ||
- name: Set TRAQ_REVISION env (fallback) | ||
if: ${{ github.event.inputs.commit == '' }} | ||
run: echo "TRAQ_REVISION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (下の方)イメージタグは"master"固定で大丈夫ですか? |
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ブランチ指定で動かすのは特に設定なしでできます
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/traPtitech/traQ/blob/master/.github/workflows/renovate.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workflow_dispatch:
だけでも良さそうですが、説明とデフォルト付けた方が良いかなと思うので残しておこうと思ってます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
流石にデフォルトはレポジトリのデフォルトブランチになるんじゃ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これたぶんpikachuが思ってる挙動と違って、このデフォルトであるドロップダウンの下にinputがもう一つ生えてそこにブランチ入力することになります
ドロップダウンのデフォルトはレポジトリのデフォルトブランチです
ここのDry-runにブランチ名を入力することになる
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほど、なら
workflow_dispatch:
だけで良さそうですね。ありがとうございます。