Overview

I had the opportunity to build a Django CI/CD environment from GitHub to EC2 using GitHub Actions, and here are my notes.

The following article was used as a reference.

https://qiita.com/fffukken/items/27b0bfa712940914d3f6

I made some updates to the GitHub Actions configuration compared to the above article.

GitHub Actions Configuration

nojanom:ppbbeuusu:sblb:irss-----ehrlrluttnT:a_adnrmmeunuwnrnrnrvSEEenrn:saaapsasiauauau:ECCscec-txtpsemetpmnppmnpppmnecs&&&&&&C22thqhoe-ry:seshye:yie:yyye:chs&&&&&&R__euengpit::::t:tp:ttt:hmhEUHases:yaxhh|h|hhhocgppdsTSOn:s::r:oaSaoIoiRooodddiyyeu_ESdtuancecnnnnunnne"otttadKRT[:[bl-ttt-ssnp$6S~hhcoE::Dulviivt-tmmmlS0t/pootYeddneeouoeamaTaaaoE0r<unnis:$$peetlrnpnrllennnyCilvy{{lvvu:sssslplsaaaRsclmmas${{oee-i/P/iitgggEetaatt{ylll4ocysoDp-seeeTcHonnee{ssooanhtener..._roraameeppt:eht:pipppKesigg\cscc,ecouenryyyEttgeeterr]s[knp$nseY_K>i..lceemt3o-{dtqmmt"ke\npprtta.u$p{eauaieeyyyressi9t{ynlikgs>yCmet..n,@{tmclrerthammssEEvhaiemaseiait.CC]"3motemitecnkgaS223anrs-egeckerrE__.t@iunrri\matCUH1rvxptaenitRSO0i4.gsttggegEES"xpr.i_=ruTRT].yatokna\n_ptdxneotiK}}yhetsyicE}}to$ooYhnp{nro-iEsn}nvpC"}-e2\vr_esUriSsoEinRo}n}@}$}{}EC2_HOST}-isecret_key"source<>/bin/activate\

The changes made were updating the versions of actions/checkout and actions/setup-python. I also changed the pip install section to pip install -r requirements.txt.

Summary

With the above configuration, I was able to achieve deployment from GitHub to EC2. I hope this serves as a useful reference for others.