Azure / Azure/static-web-apps

Provide a trimmed down alternative to `staticappsclient` image

Open
#1,067 5 comments 6 reactions 0 assignees View on GitHub
enhancement oryx
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

The staticappsclient docker image is a monstrosity designed to make the easy task of bundling your static web application easy, and provides, in-the-box, basically every language under the sun (along with several vulnerabilities, according to docker desktop), weighing in at an eye watering 2.2 gigabytes.

![image](https://user-images.githubusercontent.com/969938/217284200-d0f9f8bd-fdb5-43a9-bbe3-3efef13c45d7.png)

This means every single execution of this github action adds at least 40 seconds just to pull the image.

**Describe the solution you'd like**
I would like a `staticappspush` or slimmed down alternative github action which has only the necessary dependencies to push pre-built static & api assets up to your azure static web app, leaving the "building" of the app to the implementer, **instead of ** oryx.

**Describe alternatives you've considered**
Perhaps it is possible to use the API? ( https://learn.microsoft.com/en-us/rest/api/appservice/static-sites/create-zip-deployment-for-static-site?tabs=HTTP ) or SWA CLI, which cannot be used with SWAs pointed at github

The time spent on my own build is approximately 6 seconds, out of 1 minute and 30 second total run, thats 93% of the github action time spent on just downloading tooling, configuring node (that already comes with github actions runners), that I dont need

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.