humanitec / preview-envs-action Goto Github PK
View Code? Open in Web Editor NEWDynamic Preview Environments using Humanitec
Dynamic Preview Environments using Humanitec
When I do this:
- name: create preview environment
uses: humanitec/preview-envs-action@v1
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
humanitec-org: humanitec-labs
humanitec-app: dev-docs
action: create
github-token: ${{ secrets.GITHUB_TOKEN }}
I got this error:
Created environment: dev-ephemeral-envs, https://app.humanitec.io/orgs/***/apps/onlineboutique/envs/dev-ephemeral-envs
Created auto-deployment rule for refs/heads/ephemeral-envs and image registry.humanitec.io/***/hello-humanitec
Error: Action failed
Error: HttpError Resource not accessible by integration
I think it would be ideal to provide the option to just create a new Env for an App without providing any image. Think about subsequent tasks to deploy Score, etc.
Does that make sense?
Today the id
and the name
of the ephemeral Env is auto-generatead, it would be ideal to have the option to provide the id
if in my organization we need to respect a certain naming convention for our Envs in Humanitec.
For create
, providing the id
will set the name
with it? Assuming that's reasonable, otherwise adding another input name
...
https://github.com/humanitec/preview-envs-action/blob/main/src/utils.ts
It would be great if we could have a dedicated action that we could use to comment the PR with insightful information like:
This is a typically workflow with PR for testing feature branch, especially with new/ephemeral envs.
Something around these lines (credit to @williamoverton for that!), see attached.
Kind of different from create
and notify
, why not comment
, comment-summary
or `get-summary?
This action could/should wait for the in-progress Deployment.
Kind of what is done in there: https://github.com/Humanitec-DemoOrg/ephemeral-env-demo/blob/main/.github/workflows/pull_request.yaml.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.