Lightweight Docker image based on node 14 Alpine with yarn, openssh, git, bash and rsync
Lightweight Docker image based on node:16-alpine with basic useful tools:
Can be pulled from Docker Hub: coexcz/node-alpine
docker pull coexcz/node-alpine
Deploy your Angular project with Bitbucket Pipelines to Firebase Hosting
firebase-tools
locally in your project
yarn add firebase-tools --dev
Add this line to your package.json into
scripts
object
scripts: {
"firebase": "firebase"
}
$FIREBASE_TOKEN
by running:
yarn firebase login:ci
(Project -> Settings > Environment variables)
with variable name FIREBASE_TOKEN
yarn firebase init
in your projectbitbucket-pipelines.yml
image: coexcz/node-alpine
pipelines:
branches:
master:
- step:
caches:
- node
script:
- yarn
- yarn build
- yarn firebase deploy --token "$FIREBASE_TOKEN"
And now every commit pushed to master
branch will be deployed to your firebase hosting 🎉
yarn release:patch
# yarn release:minor
# yarn release:major
New version will be built, tagged and pushed into Docker Hub with current tag :v1.x.x
+ :latest
tag
docker build --no-cache --progress plain --pull -t node-alpine:v16.x.x .
docker tag node-alpine:v16.x.x coexcz/node-alpine:v16.x.x
docker push coexcz/node-alpine:v16.x.x