#author("2022-07-08T01:55:32+00:00","default:admin","admin")
#author("2022-07-08T05:11:31+00:00","default:admin","admin")
[[GitHub Actions:https://github.co.jp/features/actions]]

-[[ドキュメント:https://docs.github.com/ja/actions]]
-[[GitHub Actionsの支払いについて:https://docs.github.com/ja/billing/managing-billing-for-github-actions/about-billing-for-github-actions#]]

-[[Github Actions チートシート:https://zenn.dev/masaaania/articles/c930f2f755a577]]
-[[Git Hub Actions入門:https://zenn.dev/hashito/articles/7c292f966c0b59]]
-[[新 GitHub Actions 入門:https://www.kaizenprogrammer.com/entry/2019/08/18/205010]]
-[[【GitHub Actions】ワークフローはなんとなく書けるけど構造や仕組みの理解が曖昧な方々向けの記事:https://qiita.com/suzuki0430/items/951ed9753c04743537cc]]

-[[Github Actions 2年使ってみてわかったことまとめ:https://qiita.com/bigwheel/items/2ab7deb237122db2fb8d]]
-[[Web 開発者のための GitHub Actions 入門:https://fwywd.com/tech/introduction-to-github-actions]]

-[[GitHubの新機能「GitHub Actions」で試すCI/CD:https://knowledge.sakura.ad.jp/23478/]]
-[[Git Hub Actions入門:https://zenn.dev/hashito/articles/7c292f966c0b59]]
-[[GitHub Actionsの手動実行パラメータのUI改善について速報で解説する:https://zenn.dev/kesin11/articles/13ca0f40e1eaa0]]
-[[GitHub Actions上で独自のワークフローを構築しやすくするための仕組み:https://tech.pepabo.com/2021/12/25/your-own-workflows-on-github-actions/]]
-[[Web 開発者のための GitHub Actions 入門:https://fwywd.com/tech/introduction-to-github-actions]]
-[[GitHub Actionsでデプロイを並列に実行させてCI/CDを高速化してみた:https://dev.classmethod.jp/articles/github-actions-parallel-deploy/]]
-[[入門 GitHub Actions:https://tech.medpeer.co.jp/entry/2021/06/24/100000]]
-[[Github Actionsのご紹介:https://techmagic.co.jp/blog220412/]]
-[[GitHub Actionsの共通したアクションを切り出してシンプルに保つ:https://zenn.dev/stafes/articles/ikkitang-a694b8afeb66f5]]
-[[[入門]GitHub Actions ~全てのエンジニアのための備忘録~:https://selfnote.work/20220109/programming/begginer-github-actions/]]
-[[【入門】Github Actionsとは? 簡単なチュートリアルを用いて解説:https://mo-gu-mo-gu.com/about-basic-github-actions/]]

-[[GitHub ActionsでPostman + NewmanのAPIテストを実行してみた:https://dev.classmethod.jp/articles/postman_newman_githubactions/]]
-[[GitHub Actionsに導かれし、CircleCI使いの者たちのための導きの書:https://zenn.dev/nus3/articles/44977a5ea4d6cd]]
-[[GitHub Actionsに魅了されてしまいました:https://dev.icare.jpn.com/dev_cat/intro_github_actions/]]
-[[GitHub Actionsは商用システムのCI/CDツールとして使えるか?!:https://www.ariseanalytics.com/activities/report/20201225/]]

**課金体系 [#q36dbe04]
-[[GitHub Actionsの支払いについて:https://docs.github.com/ja/billing/managing-billing-for-github-actions/about-billing-for-github-actions#]]
-[[GitHub Actions の利用状況の確認と無料枠の上限に達した場合の対処方法:https://blog.beachside.dev/entry/2021/09/27/190000]]

**[[build matrix:https://docs.github.com/en/actions/using-jobs/using-a-build-matrix-for-your-jobs]] [#b4660d20]

**workflow_dispatch [#q18fb15c]
-workflow_dispatch はワークフローのトリガーの一種で、ワークフローを任意に手動で起動することができる

-ブラウザ(GitHubのリポジトリのページ)から操作できる
-ワークフローを実行するブランチを指定できる
-実行時にパラメータを渡すことができる
-REST API からでも利用できる

***用途 [#r6cc33f9]
-クラウド上(AWS等)の開発環境へのデプロイ
--本番環境であれば main ブランチへの push をトリガーにデプロイのジョブを実行すればよい
--一方、開発環境は任意の feature ブランチを任意のタイミングでデプロイできると便利
--workflow_dispatch はワークフロー実行時にブランチを選択できるため、好きなブランチを好きなタイミングでデプロイするということが容易に実現できる

-ワークフロー自体のデバッグの用途
--schedule トリガー(cron)のワークフローのjobの動作確認をするために、わざわざ設定した時間になるのを待って確認するのは手間
--そういう場合に、workflow_dispatch トリガーも設定することで、任意にワークフローを走らせることが可能

*ワークフロー [#rd07528b]
-[[GitHub Actions の重要な機能:https://docs.github.com/ja/enterprise-cloud@latest/actions/learn-github-actions/essential-features-of-github-actions]]
-[[Github Actionsの使い方メモ:https://qiita.com/HeRo/items/935d5e268208d411ab5a]]
-[[GitHub Actions のワークフローファイルを共通化した話:https://tech.speee.jp/entry/terraform-reusable-workflow]]
-[[GitHub Actions のベストプラクティス:https://zenn.dev/snowcait/scraps/9d9c47dc4d0414]]

**ワークフロー構文 [#xad22934]
-[[GitHub Actionsのワークフロー構文:https://docs.github.com/ja/actions/using-workflows/workflow-syntax-for-github-actions]]

**処理の連鎖 [#o0e1b7a5]
-[[GitHub ActionsでWorkFlowやJobを連鎖させる方法:https://qiita.com/masato_makino/items/f8cf20f3d0025d15bac8]]

***依存Job [#xd797089]

***workflow_runトリガー [#n15d9ef7]
-[[GitHub Actionsのworkflow_runトリガーを試してみる:https://zenn.dev/kitoketa/articles/28675c5eb1d0fb]]

 on:
   workflow_run:
     workflows: ["Build"]
     types: [completed]
 
 jobs:
   on-success:
     runs-on: ubuntu-latest
     if: ${{ github.event.workflow_run.conclusion == 'success' }}
     steps:

**シェルの実行 [#d9228697]
-[[GitHub Actions で学ぶシェル芸:https://zenn.dev/snowcait/scraps/ee306f1b67a374]]

*Action [#v8480c9b]
***SSH [#t46514ba]
-[[Install SSH Key:https://github.com/marketplace/actions/install-ssh-key]]

***Rsync [#w2fbcd04]
-[[Rsync Deployments Action:https://github.com/marketplace/actions/rsync-deployments-action]]

*SSH [#g684f450]
-[[GitHub ActionsでSSHを使う:https://qiita.com/shimataro999/items/b05a251c93fe6843cc16]]
-[[GitHub ActionsにSSHで入る(簡単3ステップ):https://qiita.com/shonansurvivors/items/cb8902acfe5c3a1b3ca0]]
-[[【便利】GitHub Actionsを使ってレンタルサーバーにSSHでデプロイする方法:https://kahoo.blog/github-actions-php-deploy/]]
-[[GitHub Actionsでsshコマンド経由でアプリをデプロイする。:https://retrorocket.biz/archives/1006]]

-[[GitHub Actions で SSH デバッグ! (debugging-with-tmate):https://zenn.dev/luma/articles/21e66e11cc4aa8d0f9ae]]

**鍵ファイル [#m412fb9d]
***パスフレーズはなし? [#fb5e8ba4]
-[[GitHub ActionsでPrivate RepositoryをSSH接続でnpm installしてハマった話:https://zenn.dev/tokiya_horikawa/articles/215637f23c8407]]
-[[ssh-addでパスフレーズ無しでssh接続する方法をご紹介!:https://www.fenet.jp/infla/column/server/ssh-add%E3%81%A7%E3%83%91%E3%82%B9%E3%83%95%E3%83%AC%E3%83%BC%E3%82%BA%E7%84%A1%E3%81%97%E3%81%A7ssh%E6%8E%A5%E7%B6%9A%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%82%92%E3%81%94%E7%B4%B9%E4%BB%8B%EF%BC%81/]]

*PHP [#x62fe427]
-[[【PHP版】CI(継続的インテグレーション)ツール導入ガイド:第1回 CIの概要:https://tracpath.com/bootcamp/ci/php_tutorial_1.html]]
-[[【PHP版】CI(継続的インテグレーション)ツール導入ガイド:第2回 さまざまなジョブ:https://tracpath.com/bootcamp/ci/php_tutorial_2.html]]
-[[【PHP版】CI(継続的インテグレーション)ツール導入ガイド:第3回 さまざまなジョブ(1):https://tracpath.com/bootcamp/ci/php_tutorial_3.html]]
-[[【PHP版】CI(継続的インテグレーション)ツール導入ガイド:第4回 さまざまなジョブ (2):https://tracpath.com/bootcamp/ci/php_tutorial_4.html]]

-[[Laravel + AWS Elastic Beanstalk環境をGithub Actionsでデプロイする:https://zenn.dev/tomipetit/articles/2e3dba6bef2734]]
-[[GitHub ActionsでLaravelプロジェクトのCI・CD環境を構築する:https://maasaablog.com/development/git/github/github-actions/2054/]]
-[[GitHub Actionsで超基本的なCI環境を構築する(PHP):https://maasaablog.com/development/git/github/github-actions/1725/]]
-[[GitHub Actionsで超基本的なCD環境を構築する(PHP):https://maasaablog.com/development/git/github/github-actions/1733/]]
-[[GitHub Actions で PHP の CI/CD をする:https://qiita.com/nanasess/items/09b0798eb878328b195f]]

-[[【GitHub Actions】LaravelのCI環境を作ってみた:https://note.com/deliku0306/n/n2eeaa8a08187]]
-[[GitHub ActionsでLaravelプロジェクトをデプロイする:https://cloudpack.media/56486]]
-[[GitHub ActionsでLaravelプロジェクトをCI/CDする:https://zenn.dev/tokku5552/articles/laravel-github-actions]]
-[[GitHub ActionsでLaravelのテストを実行する際にRedisと接続する方法【PHPUnit】:https://www.engilaboo.com/github-actions-connect-redis/]]
-[[【Laravel + PHPUnit】Unit・Featureテストを実装してGitHubActionsでCI/CD環境を構築する話:https://zenn.dev/naonao70/articles/7be1dba7b7f758]]
-[[そこそこ巨大な Laravel の Unit test を Github Actions で出来るだけ早く回すためにやっていること:https://fortee.jp/phperkaigi-2022/proposal/17039ab7-76ed-451a-98fb-36e89a779f40]]
-[[GitHub Actions をローカルマシンで実行する(PHP 編):https://zenn.dev/shogogg/articles/ea9b3c49560782251c6d]]

-[[Github Actions を使った PHP の静的解析:https://qiita.com/ss_koishi/items/67b22a3238bee2cb0b2d]]
-[[GitHub Actions を使って静的コード解析を行うのがとても便利:https://sterfield.co.jp/blog/development/github-actions-%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E9%9D%99%E7%9A%84%E3%82%B3%E3%83%BC%E3%83%89%E8%A7%A3%E6%9E%90%E3%82%92%E8%A1%8C%E3%81%86%E3%81%AE%E3%81%8C%E3%81%A8%E3%81%A6%E3%82%82%E4%BE%BF/]]

**PHPUnit [#a68449ec]
-[[GitHub ActionsでPHPUnitを実行する:https://qiita.com/blue32a/items/0661d70216051ad6552d]]
-[[phpunitをGitHubActionsで行うCI/CD環境の構築方法:https://zenn.dev/naonao70/articles/44bc859c3ebc37]]
-[[GitHub Actionsを使ってLaravelアプリケーションをCI/CDする:https://www.seeds-std.co.jp/blog/creators/2020-08-19-233031/]]

**[[octcov:https://github.com/k1LoW/octocov]] [#qf20c3b9]
-[[GitHub Actions Deep Dive using PHP:https://speakerdeck.com/k1low/phperkaigi-2022]]

**[[cs2pr:https://github.com/staabm/annotate-pull-request-from-checkstyle]] [#c25761b9]
-[[GitHub Actions使っていますか?では、cs2prも一緒にいかがですか?:https://fortee.jp/phperkaigi-2022/proposal/0ced67d5-5b91-476c-8afb-6135ebdb9b38]]

*.NET [#c7c9e07d]
-[[GitHub Actions を使用して .NET Web アプリをビルドする:https://docs.microsoft.com/ja-jp/dotnet/architecture/devops-for-aspnet-developers/actions-build]]

*デプロイ [#c4fba241]
**AWS [#mfc68f86]
***IP制限 [#zdd33a04]
-[[GitHubのIPアドレスについて:https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses]]
-[[GitHub ActionsでSrc IP制限のかかったサービス(AWS RDS)につなぐ:https://qiita.com/fetaro/items/45f94a50316463cf093d]]
-[[GitHub ActionsでEC2に自動デプロイ環境を構築する方法:https://note.com/ryoppei/n/nf2bf7ee78b0b]]

***EC2 [#y068040b]
-[[Github ActionsでLaravel(EC2)のデプロイ(deploy)自動化:https://noumenon-th.net/programming/2020/05/08/github-actions/]]
-[[[AWS][EC2]GitHub Actionsで気楽にステージングと本番をrsyncデプロイしてみた:https://blog.adachin.me/archives/49465]]

***Elastic Beanstalk [#g591c7d9]
-[[github ActionsとElasticBeanstalkで自動デプロイ環境を作る:https://ito-u-oti.com/github-actions-elasticbeanstalk-cicd/]]
-[[Laravel + AWS Elastic Beanstalk環境をGithub Actionsでデプロイする:https://zenn.dev/tomipetit/articles/2e3dba6bef2734]]
-[[Github Actionsでeb cliを使いたい:https://qiita.com/rihofujino/items/4251b5e484f3bfc57b0e]]

**sakura [#va86a78a]
***IP制限対応 [#ka3bfccf]
-[[GitHubのIPアドレスについて:https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses]]
--[[IPアドレスリスト:https://api.github.com/meta]]
---actions の IPv4 だけでもCIDR形式で2000弱ある ^^;

***SSH [#bdd2a214]
-[[【GitHub】リモートリポジトリへのpushを自動でサーバに反映させる方法【自動デプロイ】:https://dol.co.jp/archives/column/%E3%80%90github%E3%80%91push%E3%82%92%E8%87%AA%E5%8B%95%E3%81%A7%E9%96%8B%E7%99%BA%E7%92%B0%E5%A2%83%E3%81%AB%E5%8F%8D%E6%98%A0%E3%81%95%E3%81%9B%E3%82%8B%E6%96%B9%E6%B3%95%E3%80%90%E8%87%AA%E5%8B%95]]
-[[GitHub ActionsでSpringBootアプリをさくらVPSにSSHしてデプロイする:https://qiita.com/Captain_Blue/items/077cf7895c74b5d4fc40]]
-[[さくらサーバー – Laravel~デプロイ:http://taustation.com/sakura-laravel-deploy/]]

-[[GitHub ActionsでSSHを使う:https://qiita.com/shimataro999/items/b05a251c93fe6843cc16]]
-[[【便利】GitHub Actionsを使ってレンタルサーバーにSSHでデプロイする方法:https://kahoo.blog/github-actions-php-deploy/]]
-[[Deploying to a server via SSH and Rsync in a Github Action:https://zellwk.com/blog/github-actions-deploy/]]

-鍵生成時にパスフレーズは未設定で!

***FTP [#z971c568]
-[[さくらレンタルサーバーでも自動デプロイがしたい!【GitHubActions】:https://zenn.dev/mamezou/articles/23a221c7287cf6]]
-[[github actionsを使用して自動デプロイ。さくらサーバーver:https://zenn.dev/hirof1990/scraps/43355a4da2172d]]
-[[github actionsを用いたFTP自動デプロイ。(例:さくらサーバー):https://zenn.dev/hirof1990/articles/2f8eeab56b8637]]
-[[さくらのレンタルサーバにgit-ftp:https://hysryt.com/archives/tag/github-actions]]

*移行事例 [#r6886292]
-[[Terraform の CI を AWS CodeBuild から GitHub Actions + tfaction に移行しました:https://blog.studysapuri.jp/entry/2022/02/04/080000]]
-[[GitHub ActionsでRuby on RailsのCI環境を構築する上でのポイント:https://tech.hey.jp/entry/2021/05/21/134001]]
-[[CircleCIで構築されたCI/CD環境をGitHub Actionsに移行した際のポイント:https://tech.buysell-technologies.com/entry/adventcalendar2021-12-05]]
-[[CI/CD ConferenceからサイバーエージェントのCI/CDツール開発のセッションを紹介:https://thinkit.co.jp/article/18874]]
-[[リーン開発を実現するため、「みらい翻訳」が取り組む、マイクロサービス化とデプロイ改善【デブサミ2022】:https://codezine.jp/article/detail/15701]]
-[[JenkinsからGitHub Actionsへの移行:https://docs.github.com/ja/enterprise-server@3.4/actions/migrating-to-github-actions/migrating-from-jenkins-to-github-actions]]

*トラブルシューティング [#cd0b4a96]
***Bad substitution [#e4db24f9]
-[[問題の解決:Bash Bad Substitution:https://gamingsym.in/jp/%E5%95%8F%E9%A1%8C%E3%81%AE%E8%A7%A3%E6%B1%BA%EF%BC%9Abash-bad-substitution/]]

***Process completed with exit code 255 [#k8b6fa90]
-[[GitHub ActionsでError: Process completed with exit code 255が出る時:https://off.tokyo/blog/github-actions-process-completed-with-exit-code/]]
-[[GitHub Actions AWS error exit code 255:https://dotjoeblog.wordpress.com/2021/03/14/github-actions-aws-error-exit-code-255/]]


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS