A lightweight Docker image with Firebase CLI.
4.6K
A lightweight Docker image with Firebase CLI.
For the Dockerfile, see the GitHub repo.
In the workflow yaml file, use the image cotiq/firebase-tools:latest.
jobs:
# Other pipeline stages omitted for brevity
deploy:
runs-on: ubuntu-latest
container:
image: cotiq/firebase-tools:latest
env:
FIREBASE_TOKEN: "${{ secrets.FIREBASE_TOKEN }}"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build App
run: npm run build
- name: Deploy to Firebase
run: |
firebase use production
firebase deploy --only hosting -m "Pipeline $GITHUB_RUN_NUMBER, build $GITHUB_RUN_ID" --non-interactive
In the deployment stage of the GitLab workflow yaml file, use the image cotiq/firebase-tools:latest and remove the command that installs firebase-tools:
# Other pipeline stages omitted for brevity
deploy-production:
stage: deploy
image: cotiq/firebase-tools:latest
script:
- firebase deploy --only hosting -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive
only:
- main
Content type
Image
Digest
sha256:a6cbe62ab…
Size
102.1 MB
Last updated
3 days ago
docker pull cotiq/firebase-tools:15.24.0