Skip to content

Update sidekiq.yml

Update sidekiq.yml #6

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build & Deploy - pozworld-sidekiq
concurrency:
group: pozworld-sideqkiq
cancel-in-progress: true
on:
push:
branches:
- poz.world
workflow_dispatch:
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-and-push-docker-image
with:
git-token: ${{ secrets.HIVCHASER_PACKAGES_PAT }}
github-password: ${{ secrets.HIVCHASER_PACKAGES_PAT }}
username: hivchaser
acr-password: ${{ secrets.AZURECR_KEY }}
tag: |
ghcr.io/poz-world/sidekiq.poz.world
thebackroomlife.azurecr.io/sidekiq.poz.world
tag-prefix: pwv
description: Sidekiq for your self-hosted social media platform for the HIV community
dockerfile: Dockerfile.sidekiq.poz.world
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'pozworld-sidekiq'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_580504f0093243dcbd62ce6a2e05d3c3 }}
images: 'ghcr.io/poz-world/sidekiq.poz.world:${{ github.sha }}'