Skip to content

Feature/discard worker func #19

Feature/discard worker func

Feature/discard worker func #19

# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Dockerize background workers
on:
push:
branches:
- release/background
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- release/background
- main
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: './Stat.Itok.Worker' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '6.0.x' # set this to the dotnet version to use
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v2
- name: Build and publish a Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }} # it will be lowercased internally
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: "./Stat.Itok.Worker/Dockerfile"