GitHub Actions To S3

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 14

  • @00l4
    @00l4 6 місяців тому +1

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

  • @khalidelgazzar
    @khalidelgazzar 6 місяців тому

    That's helpful 😊 thank you

  • @emmanuelezeka7236
    @emmanuelezeka7236 9 місяців тому

    Awesome, thank you.

  • @oberkayb
    @oberkayb Рік тому

    ever clear solution. the best

    • @alexhyettdev
      @alexhyettdev  Рік тому

      Thank you 🙏 I am glad you liked it.

  • @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!!