Skip to content

Instantly share code, notes, and snippets.

View TheJotob's full-sized avatar

Joachim Eckerlin TheJotob

  • Augsburg, Bavaria, Germany
View GitHub Profile
@TheJotob
TheJotob / renovate.json
Created November 13, 2022 13:54
Renovate Configuration
{
"extends": [
"config:base",
"schedule:nonOfficeHours",
"group:recommended",
"npm:unpublishSafe",
":automergePatch",
":automergeLinters",
":automergeTesters"
],
@TheJotob
TheJotob / github_action.yml
Created October 16, 2022 11:19
Wordpress Deployment Github Action
# In subdirectory .github/workflows
name: Deploy Website on master
on:
push:
branches:
- master
concurrency: production_environment
jobs:
@TheJotob
TheJotob / deploy.php
Last active October 16, 2022 10:13
Deployer configuration Wordpress
<?php
namespace Deployer;
require 'recipe/common.php';
inventory('.deployer/hosts.yml');
set('webroot', 'web');
// Shared files/dirs between deploys
@TheJotob
TheJotob / .gitlab-ci.yml
Last active August 23, 2022 17:15
Deploy multiple apps to Heroku from one Repository
stages:
- deploy
deploy:frontend:
script:
- git remote add heroku-frontend https://heroku:$HEROKU_API_KEY@git.heroku.com/frontend-app.git
- git push --force heroku-frontend `git subtree split --prefix frontend-folder HEAD`:master
only:
- master
stage: deploy
@TheJotob
TheJotob / heroku-build-cache-buster.yml
Last active July 26, 2022 19:08
Github Action to flush heroku build cache, when npm dependencies change
---
name: Flush Heroku Build Cache
on:
push:
branches:
- main
paths:
- yarn.lock
@TheJotob
TheJotob / clear-heroku-build-cache.sh
Created July 26, 2022 18:51
Clear Heroku Build Cache
heroku plugins:install heroku-builds
heroku builds:cache:purge --app your-app-name --confirm your-app-name