v3.1.0
Release Highlights
Release tag: v3.1.0
Deploy image to docker optionally, as well as GHCR by @ljones140 in #97
To migrate deployment of Production Crawler to CD Azure from Microsoft owned Azure.
Changes to workflow app-build-and-deploy
Enables the optional docker image publish to Docker Hub, conditional on providing
- Input docker-hub-username
- secret DOCKERHUB_TOKEN
Without these the action only deploys to ghcr
Example of what prod crawler workflow will look like
name: Build and Deploy -- PROD
on:
workflow_dispatch:
release:
types: [published]
jobs:
upload-package-lock-json:
name: Upload package-lock.json from this repo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Upload package-lock.json
uses: actions/upload-artifact@v4
with:
name: package-lock.json
path: package-lock.json
build-and-deploy-prod:
needs: upload-package-lock-json
uses: clearlydefined/operations/.github/workflows/[email protected]
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PROD }}
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
PRODUCTION_DEPLOYERS: ${{ secrets.PRODUCTION_DEPLOYERS }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
deploy-env: prod
application-type: worker
azure-app-base-name: cdcrawler
azure-app-name-postfix: -prod
docker-hub-username: ${{ vars.DOCKERHUB_USERNAME }}