GitHub Actions To S3

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 14

  • @00l4
    @00l4 5 หลายเดือนก่อน

    Thanks my friend, helped me to build my own version.

  • @khalidelgazzar
    @khalidelgazzar 4 หลายเดือนก่อน

    That's helpful 😊 thank you

  • @oberkayb
    @oberkayb ปีที่แล้ว

    ever clear solution. the best

    • @alexhyettdev
      @alexhyettdev  ปีที่แล้ว

      Thank you 🙏 I am glad you liked it.

  • @emmanuelezeka7236
    @emmanuelezeka7236 7 หลายเดือนก่อน

    Awesome, thank you.

  • @phsopher
    @phsopher ปีที่แล้ว

    Nice tutorial, thanks. Bears mentioning that when the css and js file names are changed with every build to refresh cash so simply syncing your new build folder each time will clutter the bucket with files from previous builds. Might want to clear the static folder before syncing.

    • @alexhyettdev
      @alexhyettdev  ปีที่แล้ว

      Yes good point, you also want to specify --delete on the command to clear up files that aren't in the source folder. Don't forget unless you cache in GitHub Actions there won't be any previous build files.

  • @camolog
    @camolog ปีที่แล้ว

    Very helpful. Thank You

  • @nivethat9780
    @nivethat9780 2 ปีที่แล้ว

    Hi...can we do this for multiple environments like staging,prod?

    • @alexhyettdev
      @alexhyettdev  2 ปีที่แล้ว

      Yes you can but you would have to set up a separate to push to a different S3 bucket. You can do conditional steps that only run when the branch is tagged for example.

  • @sqljava5249
    @sqljava5249 2 ปีที่แล้ว

    I like it your video. You explained very good. I've got a question, ¿Can I programm for differents enviroments?, For example, from dev to qa, from qa to staging, from staging to prod.

    • @alexhyettdev
      @alexhyettdev  2 ปีที่แล้ว +2

      Yes you can set conditional environment variables in GitHub Actions but it is more fiddly than it should be. I have not tried it myself but there is a good post here on it:
      hungvu.tech/advanced-github-actions-conditional-workflow#heading-creating-an-action-3-times-for-3-branches-results-in-duplicated-code-should-there-be-a-way-to-refactor
      You would also need at least to have separate S3 buckets as the names need to be globally unique even if in separate AWS accounts.

    • @sqljava5249
      @sqljava5249 2 ปีที่แล้ว +1

      @@alexhyettdev Thanks so much!!