GithubHelp home page GithubHelp logo

isabella232 / actions-pulumify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pulumi/actions-pulumify

0.0 0.0 0.0 9.33 MB

Pulumify - A GitHub Action to continuously deploy static website previews

Shell 0.14% JavaScript 0.24% Python 98.20% TypeScript 0.36% CSS 1.00% TeX 0.02% Batchfile 0.02% Dockerfile 0.02%

actions-pulumify's Introduction

Pulumify - Easy Static Website Previews for GitHub ๐Ÿน

Pulumify automatically builds and publishes static website previews to AWS S3 in response to GitHub Pull Requests. This lets you rapidly iterate on website changes that are easily reviewable with your team.

Just configure it using the steps below, open a new PR, and voila!

Pulumify In Action!

Pulumify is powered by Pulumi and GitHub Actions. Pulumi supports other clouds and based on interest, we'd be happy to add support for Azure, GCP, etc.

Configuring Pulumify in Your Repo

To enable Pulumify in your repo, do the following:

  1. Enable GitHub Actions in your account.

  2. Configure your GitHub secrets. This must include your PULUMI_ACCESS_TOKEN in addition to your cloud credentials. For example, to deploy to AWS, you'll need AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY values with appropriate IAM permissions to deploy an S3 website to your account.

  3. Commit the following file as .github/workflows/pulumify.yml:

    name: Pulumify
    on: [pull_request, delete]
    jobs:
      updateLivePreview:
        name: Update Live Preview
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v2
        - uses: docker://pulumi/pulumify
          env:
            AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
            AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
            PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
            PULUMIFY_BUILD: make ensure && hugo --buildFuture -e $GITHUB_SHA
            PULUMIFY_ROOT: public
    

    Feel free to customize the PULUMIFY_BUILD or PULUMIFY_ROOT settings as appropriate. This example uses Hugo. It's also possible to deploy to a Pulumi organization using PULUMIFY_ORGANIZATION.

After these three steps, the Pulumify GitHub Action will comment on your PRs automatically with URLs to your websites.

actions-pulumify's People

Contributors

joeduffy avatar cnunciato avatar justinvp avatar stack72 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.