cotiq/firebase-tools

By cotiq

Updated 3 days ago

A lightweight Docker image with Firebase CLI.

Image
Languages & frameworks
Integration & delivery
Developer tools
0

4.6K

cotiq/firebase-tools repository overview

firebase-tools

A lightweight Docker image with Firebase CLI.

For the Dockerfile, see the GitHub repo.

How to use in Github Actions

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

How to use in Gitlab workflows

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

Tag summary

Content type

Image

Digest

sha256:a6cbe62ab

Size

102.1 MB

Last updated

3 days ago

docker pull cotiq/firebase-tools:15.24.0