This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
if [ "$branch" = "main" ]; then | |
echo "You are not allowed to push directly to the main branch." | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "checkout main & pull", | |
"type": "shell", | |
"command": "git checkout main && git pull" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | |
{ | |
"name": "XXXXXXXXXXXXXXXXXXXXXXX", | |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | |
//"image": "mcr.microsoft.com/devcontainers/base:jammy", | |
"image": "mcr.microsoft.com/devcontainers/base:bookworm", | |
"features": { | |
"ghcr.io/devcontainers-contrib/features/terraform-asdf:2": {}, | |
"ghcr.io/dhoeric/features/terraform-docs:1": {}, |