This example repository will create and push docker image to docker hub, and release to Heroku.
FROM cybergroupignite/runtime:v2.0.0
WORKDIR /usr/src/nodered
COPY . ./build
RUN npm run compile
FROM cybergroupignite/runtime:v2.0.0
ARG BUILD_VERSION
WORKDIR /usr/src/nodered
RUN echo BUILD_VERSION=${BUILD_VERSION} >> .env
COPY . ./build
RUN npm run compile
- name: create and push docker build
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: cybergroupignite/example-project
tags: v${{steps.buildtag.outputs.tag}}
- name: deploy to heroku app
uses: akhileshns/heroku-deploy@v3.2.6
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "ignite-example-project"
heroku_email: "bijay.shah@cygrp.com"
usedocker: true
- uses: azure/webapps-deploy@v2
with:
app-name: 'ignite-example-project'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PRODUCTION }}
images: 'cybergroupignite/example-project:v${{steps.buildtag.outputs.tag}}'
IGNITE_EDITOR_API_SECRET: "<Required, Your Ignite Secret key>"
DATABASE_URL: "<Required, Database URL>"
START_MODE: "BUILD"
CREDENTIAL_SECRET: "<Optional, if credential key were defined when project was created>"
DB_SSL_OPTION: "<Optional, default is true, if your postgres server don't support SSL then use false>"
PORT: "<Optional, default is 1881>"