Skip to content

Instantly share code, notes, and snippets.

View kodezaccounts's full-sized avatar

kodezaccounts

View GitHub Profile
@kodezaccounts
kodezaccounts / dependabot-integration.yaml
Created July 30, 2023 11:11
Dependabot integration
name: Dependabot Auto Merge
on:
pull_request_target:
types:
- opened
- synchronize
jobs:
dependabot:
@kodezaccounts
kodezaccounts / advanced-security-integration.yaml
Created July 30, 2023 11:10
Advanced Security integration
name: "Code Scanning"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
# Runs every Sunday at 12 noon UTC
- cron: '0 12 * * 0'
@kodezaccounts
kodezaccounts / gha-function-app-deployment.yaml
Created July 30, 2023 01:27
GHA Function App deployment example
name: Build and Deploy to Azure Functions
on:
push:
branches:
- main
env:
AZURE_FUNCTIONAPP_NAME: my-function-app # set this to your application's name
AZURE_FUNCTIONAPP_PACKAGE_PATH: './publish_output' # set this to the path to your app's executable file
@kodezaccounts
kodezaccounts / ado-function-app-deployment.yaml
Created July 30, 2023 01:26
ADO Azure Function App deployment YAML
trigger:
- main
variables:
# Azure Resource Manager connection created during pipeline creation
azureSubscription: 'my-azure-subscription'
# Function app name
functionAppName: 'my-function-app'
@kodezaccounts
kodezaccounts / workflow.yaml
Created July 30, 2023 01:25
Custom actions workflow yaml
jobs:
custom-job:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/custom-action
@kodezaccounts
kodezaccounts / custom-action.yaml
Created July 30, 2023 01:25
Custom action yaml example
name: 'Custom Action'
description: 'Run my scripts in a custom environment'
runs:
using: 'docker'
image: 'Dockerfile'
@kodezaccounts
kodezaccounts / Dockerfile
Created July 30, 2023 01:24
Runner env Dockerfile example
FROM node:14
RUN curl "https://d1vvhvl2y92vvt.cloudfront.net/awscli-exe-linux-x86_64-2.1.30.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
sudo ./aws/install
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [12, 14]
steps:
- name: Checkout code
uses: actions/checkout@v2
jobs:
- job: Build
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
on:
release:
types: [published, created, edited]