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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,309
Community Members
 
Community Events
185
Community Groups

Heroku build unable to extract zip file

image: node:16.14.0

clone:
depth: full

pipelines:
default:
- step:
name: Lint and build webapp
script:
- cd webapp/
- yarn install
- yarn lint
- yarn build
caches:
- node
- nodeweb
- step:
name: Lint and build serverapp
script:
- cd serverapp/
- yarn install
- yarn lint
- yarn build:dev
caches:
- node
- nodeserver
- step:
name: Test webapp
script:
- cd webapp/
- yarn test
caches:
- node
- nodeweb
- step:
name: Test serverapp
script:
- yarn db:reset
- cd serverapp/
- yarn test:e2e
caches:
- node
- nodeserver
branches:
main:
- step:
name: Deploy front-end
script:
- cd webapp/
- yarn install
- yarn build
- pipe: atlassian/firebase-deploy:0.2.1
variables:
FIREBASE_TOKEN: $FIREBASE_TOKEN
PROJECT_ID: apcviewer
- step:
name: Deploy back-end
script:
- git branch
- git archive -o ./apcviewer.zip main serverapp
- pipe: atlassian/heroku-deploy:2.0.0
variables:
HEROKU_API_KEY: $HEROKU_API_KEY
HEROKU_APP_NAME: apc-viewer
ZIP_FILE: apcviewer.zip

definitions:
caches:
nodeweb: webapp/node_modules
nodeserver: serverapp/node_modules

2 answers

@Manuel Aguirre  Hi.
Try to split  `step name: Deploy back-end` onto two steps.

step:

name: Build

script:

- your logic to create zip file apcviewer.zip
- verify that file created with ls command

artifacts:

- apcviewer.zip


step:

name: Deploy to heroku

script:

- pipe: atlassian/heroku-deploy:2.0.0

variables:
HEROKU_API_KEY: $HEROKU_API_KEY
HEROKU_APP_NAME: apc-viewer
ZIP_FILE: apcviewer.zip


Cheers

The code block formatter is not working, and it messes with my indents, assume they're ok and validated with the pipelines file validator

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events