Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problem to deploy Azure Static Web App

Blagovest Doshkov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2023

Hello,

We are using BitBucket pipelines and we haven't got an issue until now.
We are using the pipeline to deploy Azure Static Web App.

The pipeline was working correctly until now. It executes "successfully" but deployment is not conducted. 

Our pipeline looks like this:

image: atlassian/default-image:3
image: node:20.10.0

pipelines:
custom:
Build and deploy:
- step:
name: Build and Deploy to Dev
caches:
- node
deployment: Dev
script:
- cd App.Destination

- npm install @angular/cli -g
- npm install

#production configuration actually holds the variable names of the Bibucket deployment variables
- ng build --configuration=production
#- uname -mrs

- pipe: microsoft/azure-static-web-apps-deploy:main
variables:
VERBOSE: 'true'
APP_LOCATION: '$BITBUCKET_CLONE_DIR/App.Destination/dist/app'
SKIP_APP_BUILD: "true"

 We saw that the pipe "microsoft/azure-static-web-apps-deploy:main" is not initiating a deployment any longer.  The output of this pipe can be seen in the attached screenshots.
The last two line of the output of this pipe are the following:

Digest: sha256:c5c8b14fb91853c4903ea62c5f25d57b5913e6c09efaa24e2aa1c9324101f748
Status: Downloaded newer image for staticwebapps.azurecr.io/bitbucket-deploy:stable

 

image.pngimage.pngimage.png

 

Is there any alternative to configure the BitBucket pipeline to deploy the Azure Static Web App other than the usage of "microsoft/azure-static-web-apps-deploy:main" pipe.

Thanks in advance.

2 answers

1 accepted

4 votes
Answer accepted
Blagovest Doshkov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2023

For those who are still trying to find a workaround:

Instead using the mentioned pipe "microsoft/azure-static-web-apps-deploy:main" we are installing the swa cli and calling the "deploy" command.

This has been tested for Angular app without an API.

- npm install -g @azure/static-web-apps-cli
- swa --verbose=silly deploy "$BITBUCKET_CLONE_DIR/<app-folder>" --deployment-token=$deployment_token --en
3 votes
Yee Jian Tan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2023

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events