Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: POC #1

Merged
merged 12 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"exiasr.hadolint",
"github.vscode-github-actions",
"golang.go",
"gruntfuggly.todo-tree",
"johnpapa.vscode-peacock",
"kamadorueda.alejandra",
"ms-azuretools.vscode-docker",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"ms-vscode.makefile-tools",
"nhoizey.gremlins",
"pinage404.nix-extension-pack",
"redhat.vscode-yaml",
"streetsidesoftware.code-spell-checker",
"tekumura.typos-vscode",
"timonwong.shellcheck",
"tuxtina.json2yaml",
"vscodevim.vim",
"wakatime.vscode-wakatime",
"yzhang.markdown-all-in-one"
]
}
},
"image": "ghcr.io/cachix/devenv:latest",
"overrideCommand": false,
"updateContentCommand": "devenv test"
}
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_url "https://github.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc" "sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0="

use devenv
33 changes: 33 additions & 0 deletions .github/actions/docker-buildx/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: "Docker Buildx"
description: "A composite action to set up Docker Buildx"

inputs:
registry:
required: true
description: "The registry to login to"
username:
required: true
description: "The username to login to the registry"
password:
required: true
description: "The password to login to the registry"

runs:
using: "composite"
steps:
- id: setup_qemu
name: Set up QEMU
uses: docker/setup-qemu-action@v3

- id: setup_buildx
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- id: login_to_registry
name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}
42 changes: 42 additions & 0 deletions .github/actions/imager/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Imager
description: "A composite action to run imager"

inputs:
workdir:
required: true
description: "The working directory to use"
imager_image:
required: true
description: "The imager image to use"
overlay_name:
required: true
description: "The overlay name to use"
overlay_image:
required: true
description: "The overlay image to use"

runs:
using: "composite"
steps:
- id: imager_pull
name: Pull imager image
run: |
docker pull ${IMAGER_IMAGE}

- id: imager_run
name: Run imager
run: |
docker run \
--name imager \
--rm \
-t \
--env GITHUB_TOKEN \
--volume /dev:/dev \
--volume $PWD/_out:/out \
--privileged \
${{ inputs.imager_image }} \
${{ inputs.overlay_name }} \
--arch arm64 \
--overlay-image=${{ inputs.overlay_image }} \
--overlay-name=${{ inputs.overlay_name }}
35 changes: 35 additions & 0 deletions .github/actions/setup_make/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: "Setup Make"
description: "A composite action to set up to run Make"

inputs:
repository:
required: true
description: "The repository to clone"
branch:
required: true
description: "The branch to checkout"
path:
required: true
description: "The path to clone the repository to"

runs:
using: "composite"
steps:
- id: checkout_repository
name: Checkout repository
uses: actions/checkout@v4

- id: checkout_repository_make
name: Checkout repository for make
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.branch }}
path: ${{ inputs.path }}

- id: install_dependencies
name: Install dependencies
run: |
apt update
apt install -y make
63 changes: 63 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
##################################################
#
# Name: dependabot.yml
# Description: Dependabot configuration for GitHub native version
# Reference: https://git.io/JJhjE
#
##################################################

version: 2

updates:
#########################
# GitHub Actions
#########################

- package-ecosystem: "github-actions"
directories:
- "/"
schedule:
interval: "weekly"
day: "sunday"
time: "00:00"
timezone: "Australia/Sydney"
assignees:
- "MAHDTech"
reviewers:
- "MAHDTech"
labels:
- "dependencies"
- "dependabot"
- "actions"
target-branch: "trunk"
commit-message:
prefix: "github-actions"
rebase-strategy: "auto"
open-pull-requests-limit: 5

#########################
# Git Submodules
#########################

- package-ecosystem: "gitsubmodule"
directories:
- "/"
schedule:
interval: "weekly"
day: "sunday"
time: "00:00"
timezone: "Australia/Sydney"
assignees:
- "MAHDTech"
reviewers:
- "MAHDTech"
labels:
- "dependencies"
- "dependabot"
- "submodules"
target-branch: "trunk"
commit-message:
prefix: "gitsubmodules"
rebase-strategy: "auto"
open-pull-requests-limit: 5
Loading